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:

Return Values

has_object_properties() returns a boolean:

Throws

has_object_properties() throws an InvalidArgumentException if:

Constraints

has_object_properties() only works on objects. Use has_class_properties() to check for static properties.

Notes