PhpGenerator
class PhpGenerator
Container PHP code generator.
Methods
ClassType
generate(string $className)
Generates PHP classes. First class is the container.
string
toString(ClassType $class)
No description
void
Method
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
convertArguments(array $args)
No description
string|null
getClassName()
No description
Details
at line 27
__construct(ContainerBuilder $builder)
No description
at line 36
ClassType
generate(string $className)
Generates PHP classes. First class is the container.
at line 67
string
toString(ClassType $class)
No description
at line 77
void
addInitialization(ClassType $class, CompilerExtension $extension)
No description
at line 88
Method
generateMethod(Definition $def)
No description
at line 107
string
formatStatement(Statement $statement)
Formats PHP code for class instantiating, function calling or property setting in PHP.
at line 163
string
formatPhp(string $statement, array $args)
internal |
Formats PHP statement.
at line 169
array
convertArguments(array $args)
No description
at line 196
string|null
getClassName()
No description