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.
array
convertParameters(array $parameters)
Converts parameters from Definition to PhpGenerator.
string|null
getClassName()
No description
Details
at line 33
__construct(ContainerBuilder $builder)
No description
at line 42
ClassType
generate(string $className)
Generates PHP classes. First class is the container.
at line 75
string
toString(ClassType $class)
No description
at line 85
void
addInitialization(ClassType $class, CompilerExtension $extension)
No description
at line 96
Method
generateMethod(Definition $def)
No description
at line 115
string
formatStatement(Statement $statement)
Formats PHP code for class instantiating, function calling or property setting in PHP.
at line 167
string
formatPhp(string $statement, array $args)
internal |
Formats PHP statement.
at line 192
array
convertParameters(array $parameters)
Converts parameters from Definition to PhpGenerator.
at line 209
string|null
getClassName()
No description
Traits
Strict class for better experience.