PhpGenerator
class PhpGenerator
Container PHP code generator.
Methods
void
string
formatStatement(Statement $statement)
Formats PHP code for class instantiating, function calling or property setting in PHP.
string
formatPhp(string $statement, array $args)
Formats PHP statement.
string|null
getClassName()
No description
Details
at line 30
__construct(ContainerBuilder $builder)
No description
at line 39
ClassType
generate(string $className)
Generates PHP classes. First class is the container.
at line 73
string
toString(ClassType $class)
No description
at line 83
void
addInitialization(ClassType $class, CompilerExtension $extension)
No description
at line 94
Method
generateMethod(Definition $def)
No description
at line 113
string
formatStatement(Statement $statement)
Formats PHP code for class instantiating, function calling or property setting in PHP.
at line 169
string
formatPhp(string $statement, array $args)
internal |
Formats PHP statement.
at line 190
string|null
getClassName()
No description
Traits
Strict class for better experience.