Documentation

ClassCodeGenerator
in package

Class code creator.

Generates PHP code for specific class node tree.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Table of Contents

__construct()  : mixed
generate()  : string
Generates PHP code for class node.
generateArguments()  : mixed
generateMethod()  : mixed
generateTypes()  : string

Methods

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

Search results