HasClassProperties::check()

Not yet in a tagged release

Description

HasClassProperties::check() - does a class have static properties?

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

// our method signature
bool HasClassProperties::check(string $target, $propTypes = ReflectionProperty::IS_PUBLIC);

Parameters

HasClassProperties::check() takes two parameters:

Return Values

HasClassProperties::check() returns a boolean:

Throws

HasClassProperties::check() throws an InvalidArgumentException if:

Notes