has_object_properties()
Not yet in a tagged release
Description
has_object_properties() - does an object have non-static properties?
bool has_object_properties(object $target, $propTypes = ReflectionProperty::IS_PUBLIC);
Parameters
has_object_properties() takes two parameters:
$target(object) - the object to examine$propTypes(int) - optional scope filter
Return Values
has_object_properties() returns a boolean:
trueif$targetis an object with 1 or more properties that match$propTypesfalseotherwise
Throws
has_object_properties() throws an InvalidArgumentException if:
$targetis not an object
Constraints
has_object_properties() only works on objects. Use has_class_properties() to check for static properties.
Notes
has_object_properties()is a convenience wrapper aroundHasObjectProperties::check()