ReflectionCaster
in package
Casts Reflector related classes to array representation.
Tags
Table of Contents
- $extraMap : mixed
- castClass() : mixed
- castClosure() : mixed
- castExtension() : mixed
- castFunctionAbstract() : mixed
- castGenerator() : mixed
- castMethod() : mixed
- castParameter() : mixed
- castProperty() : mixed
- castReflectionGenerator() : mixed
- castType() : mixed
- castZendExtension() : mixed
- addExtra() : mixed
- addMap() : mixed
Properties
$extraMap
private
static mixed
$extraMap
= ['docComment' => 'getDocComment', 'extension' => 'getExtensionName', 'isDisabled' => 'isDisabled', 'isDeprecated' => 'isDeprecated', 'isInternal' => 'isInternal', 'isUserDefined' => 'isUserDefined', 'isGenerator' => 'isGenerator', 'isVariadic' => 'isVariadic']
Methods
castClass()
public
static castClass(ReflectionClass $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested, mixed $filter) : mixed
Parameters
- $c : ReflectionClass
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
- $filter : mixed
Return values
mixed —castClosure()
public
static castClosure(Closure $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested, mixed $filter) : mixed
Parameters
- $c : Closure
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
- $filter : mixed
Return values
mixed —castExtension()
public
static castExtension(ReflectionExtension $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested) : mixed
Parameters
- $c : ReflectionExtension
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
Return values
mixed —castFunctionAbstract()
public
static castFunctionAbstract(ReflectionFunctionAbstract $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested, mixed $filter) : mixed
Parameters
- $c : ReflectionFunctionAbstract
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
- $filter : mixed
Return values
mixed —castGenerator()
public
static castGenerator(Generator $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested) : mixed
Parameters
- $c : Generator
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
Return values
mixed —castMethod()
public
static castMethod(ReflectionMethod $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested) : mixed
Parameters
- $c : ReflectionMethod
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
Return values
mixed —castParameter()
public
static castParameter(ReflectionParameter $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested) : mixed
Parameters
- $c : ReflectionParameter
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
Return values
mixed —castProperty()
public
static castProperty(ReflectionProperty $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested) : mixed
Parameters
- $c : ReflectionProperty
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
Return values
mixed —castReflectionGenerator()
public
static castReflectionGenerator(ReflectionGenerator $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested) : mixed
Parameters
- $c : ReflectionGenerator
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
Return values
mixed —castType()
public
static castType(ReflectionType $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested) : mixed
Parameters
- $c : ReflectionType
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
Return values
mixed —castZendExtension()
public
static castZendExtension(ReflectionZendExtension $c, array<string|int, mixed> $a, Stub $stub, mixed $isNested) : mixed
Parameters
- $c : ReflectionZendExtension
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : mixed
Return values
mixed —addExtra()
private
static addExtra(mixed &$a, Reflector $c) : mixed
Parameters
- $a : mixed
- $c : Reflector
Return values
mixed —addMap()
private
static addMap(mixed &$a, Reflector $c, mixed $map[, mixed $prefix = Caster::PREFIX_VIRTUAL ]) : mixed
Parameters
- $a : mixed
- $c : Reflector
- $map : mixed
- $prefix : mixed = Caster::PREFIX_VIRTUAL