PHP Класс Symfony\Component\VarDumper\Caster\Caster

Автор: Nicolas Grekas ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

castObject() публичный статический Метод

Casts objects to arrays and adds the dynamic property prefix.
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
Результат array The array-cast of the object, with prefixed dynamic properties

castPhpIncompleteClass() публичный статический Метод

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

filter() публичный статический Метод

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.
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
Результат array The filtered array