Caster
class Caster
Helper for filtering out properties in casters.
Constants
Methods
static array
castObject(object $obj, string $class, bool $hasDebugInfo = false)
Casts objects to arrays and adds the dynamic property prefix.
static array
filter(array $a, int $filter, array $listedProperties = array(), int $count = 0)
Filters out the specified properties.
static
Details
static array
castObject(object $obj, string $class, bool $hasDebugInfo = false)
Casts objects to arrays and adds the dynamic property prefix.
static array
filter(array $a, int $filter, array $listedProperties = array(), int $count = 0)
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.