ClassCodeGenerator
in package
Class code creator.
Generates PHP code for specific class node tree.
Tags
Table of Contents
- __construct() : mixed
- generate() : string
- Generates PHP code for class node.
- generateArguments() : mixed
- generateMethod() : mixed
- generateTypes() : string
Methods
__construct()
public
__construct([TypeHintReference $typeHintReference = null ]) : mixed
Parameters
- $typeHintReference : TypeHintReference = null
Return values
mixed —generate()
Generates PHP code for class node.
public
generate(string $classname, ClassNode $class) : string
Parameters
- $classname : string
- $class : ClassNode
Return values
string —generateArguments()
private
generateArguments(array<string|int, mixed> $arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
Return values
mixed —generateMethod()
private
generateMethod(MethodNode $method) : mixed
Parameters
- $method : MethodNode
Return values
mixed —generateTypes()
private
generateTypes(TypeNodeAbstract $typeNode) : string
Parameters
- $typeNode : TypeNodeAbstract