Documentation

ReflectionCaster
in package

Casts Reflector related classes to array representation.

Tags
author

Nicolas Grekas p@tchwork.com

final

Table of Contents

UNSET_CLOSURE_FILE_INFO  = ['Closure' => __CLASS__ . '::unsetClosureFileInfo']
EXTRA_MAP  = ['docComment' => 'getDocComment', 'extension' => 'getExtensionName', 'isDisabled' => 'isDisabled', 'isDeprecated' => 'isDeprecated', 'isInternal' => 'isInternal', 'isUserDefined' => 'isUserDefined', 'isGenerator' => 'isGenerator', 'isVariadic' => 'isVariadic']
castAttribute()  : mixed
castClass()  : mixed
castClassConstant()  : mixed
castClosure()  : mixed
castExtension()  : mixed
castFunctionAbstract()  : mixed
castGenerator()  : mixed
castMethod()  : mixed
castParameter()  : mixed
castProperty()  : mixed
castReference()  : mixed
castReflectionGenerator()  : mixed
castType()  : mixed
castZendExtension()  : mixed
getSignature()  : mixed
unsetClosureFileInfo()  : mixed
addAttributes()  : void
addExtra()  : mixed
addMap()  : mixed

Constants

UNSET_CLOSURE_FILE_INFO

public mixed UNSET_CLOSURE_FILE_INFO = ['Closure' => __CLASS__ . '::unsetClosureFileInfo']

EXTRA_MAP

private mixed EXTRA_MAP = ['docComment' => 'getDocComment', 'extension' => 'getExtensionName', 'isDisabled' => 'isDisabled', 'isDeprecated' => 'isDeprecated', 'isInternal' => 'isInternal', 'isUserDefined' => 'isUserDefined', 'isGenerator' => 'isGenerator', 'isVariadic' => 'isVariadic']

Methods

castAttribute()

public static castAttribute(ReflectionAttribute $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionAttribute
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castClass()

public static castClass(ReflectionClass $c, array<string|int, mixed> $a, Stub $stub, bool $isNested, int $filter) : mixed
Parameters
$c : ReflectionClass
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
$filter : int
Return values
mixed

castClassConstant()

public static castClassConstant(ReflectionClassConstant $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionClassConstant
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castClosure()

public static castClosure(Closure $c, array<string|int, mixed> $a, Stub $stub, bool $isNested, int $filter) : mixed
Parameters
$c : Closure
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
$filter : int
Return values
mixed

castExtension()

public static castExtension(ReflectionExtension $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionExtension
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castFunctionAbstract()

public static castFunctionAbstract(ReflectionFunctionAbstract $c, array<string|int, mixed> $a, Stub $stub, bool $isNested, int $filter) : mixed
Parameters
$c : ReflectionFunctionAbstract
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
$filter : int
Return values
mixed

castGenerator()

public static castGenerator(Generator $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : Generator
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castMethod()

public static castMethod(ReflectionMethod $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionMethod
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castParameter()

public static castParameter(ReflectionParameter $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionParameter
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castProperty()

public static castProperty(ReflectionProperty $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionProperty
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castReference()

public static castReference(ReflectionReference $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionReference
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castReflectionGenerator()

public static castReflectionGenerator(ReflectionGenerator $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionGenerator
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castType()

public static castType(ReflectionType $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionType
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

castZendExtension()

public static castZendExtension(ReflectionZendExtension $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
$c : ReflectionZendExtension
$a : array<string|int, mixed>
$stub : Stub
$isNested : bool
Return values
mixed

getSignature()

public static getSignature(array<string|int, mixed> $a) : mixed
Parameters
$a : array<string|int, mixed>
Return values
mixed

unsetClosureFileInfo()

public static unsetClosureFileInfo(Closure $c, array<string|int, mixed> $a) : mixed
Parameters
$c : Closure
$a : array<string|int, mixed>
Return values
mixed

addAttributes()

private static addAttributes(array<string|int, mixed> &$a, Reflector $c[, string $prefix = Caster::PREFIX_VIRTUAL ]) : void
Parameters
$a : array<string|int, mixed>
$c : Reflector
$prefix : string = Caster::PREFIX_VIRTUAL
Return values
void

addExtra()

private static addExtra(array<string|int, mixed> &$a, Reflector $c) : mixed
Parameters
$a : array<string|int, mixed>
$c : Reflector
Return values
mixed

addMap()

private static addMap(array<string|int, mixed> &$a, object $c, array<string|int, mixed> $map[, string $prefix = Caster::PREFIX_VIRTUAL ]) : mixed
Parameters
$a : array<string|int, mixed>
$c : object
$map : array<string|int, mixed>
$prefix : string = Caster::PREFIX_VIRTUAL
Return values
mixed

Search results