FilterClassProperties::from()

Not yet in a tagged release

Description

FilterClassProperties::from() - get a class's static properties

// remember to import first
use GanbaroDigital\MissingBits\ClassesAndObjects\FilterClassProperties;

// our method signature
array FilterClassProperties::from(string $target, $propTypes = ReflectionProperty::IS_PUBLIC);

Parameters

FilterClassProperties::from() takes two parameters:

Return Values

FilterClassProperties::from() returns an array of name / value pairs.

If the class has no static properties, FilterClassProperties::from() returns an empty array.

Throws

FilterClassProperties::from() throws an InvalidArgumentException if:

Notes