Method | Description | |
---|---|---|
castObject ( object $obj, ReflectionClass $reflector ) : array | Casts objects to arrays and adds the dynamic property prefix. | |
castPhpIncompleteClass ( __PHP_Incomplete_Class $c, array $a, Symfony\Component\VarDumper\Cloner\Stub $stub, $isNested ) | ||
filter ( array $a, integer $filter, array $listedProperties = [], &$count ) : array | Filters out the specified properties. |
public static castObject ( object $obj, ReflectionClass $reflector ) : array | ||
$obj | object | The object to cast |
$reflector | ReflectionClass | The class reflector to use for inspecting the object definition |
return | array | The array-cast of the object, with prefixed dynamic properties |
public static castPhpIncompleteClass ( __PHP_Incomplete_Class $c, array $a, Symfony\Component\VarDumper\Cloner\Stub $stub, $isNested ) | ||
$c | __PHP_Incomplete_Class | |
$a | array | |
$stub | Symfony\Component\VarDumper\Cloner\Stub |
public static filter ( array $a, integer $filter, array $listedProperties = [], &$count ) : array | ||
$a | array | The array containing the properties to filter |
$filter | integer | A bit field of Caster::EXCLUDE_* constants specifying which properties to filter out |
$listedProperties | array | List of properties to exclude when Caster::EXCLUDE_VERBOSE is set, and to preserve when Caster::EXCLUDE_NOT_IMPORTANT is set |
return | array | The filtered array |