ClassCodeGenerator
in package
Class code creator.
Generates PHP code for specific class node tree.
Tags
Table of Contents
- $typeHintReference : TypeHintReference
- __construct() : mixed
- generate() : string
- Generates PHP code for class node.
- generateArguments() : mixed
- generateMethod() : mixed
- getReturnType() : string
Properties
$typeHintReference
private
TypeHintReference
$typeHintReference
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 —getReturnType()
private
getReturnType(MethodNode $method) : string
Parameters
- $method : MethodNode