ClassMirror
in package
Class mirror.
Core doubler class. Mirrors specific class and/or interfaces into class node tree.
Tags
Table of Contents
- $reflectableMethods : mixed
- reflect() : ClassNode
- Reflects provided arguments into class node.
- getDefaultValue() : mixed
- getTypeHints() : array<string|int, mixed>
- hasDefaultValue() : mixed
- reflectArgumentToNode() : mixed
- reflectClassToNode() : mixed
- reflectInterfaceToNode() : mixed
- reflectMethodToNode() : mixed
Properties
$reflectableMethods
private
static mixed
$reflectableMethods
= array('__construct', '__destruct', '__sleep', '__wakeup', '__toString', '__call', '__invoke')
Methods
reflect()
Reflects provided arguments into class node.
public
reflect(ReflectionClass|null $class, array<string|int, ReflectionClass> $interfaces) : ClassNode
Parameters
- $class : ReflectionClass|null
- $interfaces : array<string|int, ReflectionClass>
Return values
ClassNode —getDefaultValue()
private
getDefaultValue(ReflectionParameter $parameter) : mixed
Parameters
- $parameter : ReflectionParameter
Return values
mixed —getTypeHints()
private
getTypeHints(ReflectionType|null $type, ReflectionClass|null $class, bool $allowsNull) : array<string|int, mixed>
Parameters
- $type : ReflectionType|null
- $class : ReflectionClass|null
- $allowsNull : bool
Return values
array<string|int, mixed> —hasDefaultValue()
private
hasDefaultValue(ReflectionParameter $parameter) : mixed
Parameters
- $parameter : ReflectionParameter
Return values
mixed —reflectArgumentToNode()
private
reflectArgumentToNode(ReflectionParameter $parameter, MethodNode $methodNode) : mixed
Parameters
- $parameter : ReflectionParameter
- $methodNode : MethodNode
Return values
mixed —reflectClassToNode()
private
reflectClassToNode(ReflectionClass $class, ClassNode $node) : mixed
Parameters
- $class : ReflectionClass
- $node : ClassNode
Return values
mixed —reflectInterfaceToNode()
private
reflectInterfaceToNode(ReflectionClass $interface, ClassNode $node) : mixed
Parameters
- $interface : ReflectionClass
- $node : ClassNode
Return values
mixed —reflectMethodToNode()
private
reflectMethodToNode(ReflectionMethod $method, ClassNode $classNode) : mixed
Parameters
- $method : ReflectionMethod
- $classNode : ClassNode