EXCLUDE_VERBOSE
EXCLUDE_VERBOSE
Helper for filtering out properties in casters.
castObject(object $obj, \ReflectionClass $reflector) : array
Casts objects to arrays and adds the dynamic property prefix.
| object | $obj | The object to cast. |
| \ReflectionClass | $reflector | The class reflector to use for inspecting the object definition. |
The array-cast of the object, with prefixed dynamic properties.
filter(array $a, integer $filter, array<mixed,string> $listedProperties = array()) : array
Filters out the specified properties.
By default, a single match in the $filter bit field filters properties out, following an "or" logic. When EXCLUDE_STRICT is set, an "and" logic is applied: all bits must match for a property to be removed.
| array | $a | The array containing the properties to filter. |
| integer | $filter | A bit field of Caster::EXCLUDE_* constants specifying which properties to filter out. |
| array<mixed,string> | $listedProperties | List of properties to exclude when Caster::EXCLUDE_VERBOSE is set, and to preserve when Caster::EXCLUDE_NOT_IMPORTANT is set. |
The filtered array