PHP 클래스 Symfony\Component\VarDumper\Caster\Caster

저자: Nicolas Grekas ([email protected])
파일 보기 프로젝트 열기: symfony/var-dumper 1 사용 예제들

공개 메소드들

메소드 설명
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