IsClassProperty::check()
Not yet in a tagged release
Description
IsClassProperty::check()
- is a ReflectionProperty
a class property?
// remember to import first
use GanbaroDigital\MissingBits\ClassesAndObjects\IsClassProperty;
// our method signature
bool IsClassProperty::check(ReflectionProperty $refProp);
Parameters
IsClassProperty::check()
takes one parameter:
$refProp
(ReflectionProperty) - the property to examine
Return Value
IsClassProperty::check()
returns a boolean:
true
if$refProp
is a class property,false
otherwise.
Throws
IsClassProperty::check()
does not throw any exceptions.