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
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 76
string
toString(ClassType $class)
No description
at line 86
void
addInitialization(ClassType $class, CompilerExtension $extension)
No description
at line 97
Method
generateMethod(Definition $def)
No description
at line 116
string
formatStatement(Statement $statement)
Formats PHP code for class instantiating, function calling or property setting in PHP.
at line 172
string
formatPhp(string $statement, array $args)
internal |
Formats PHP statement.
at line 197
array
convertParameters(array $parameters)
Converts parameters from Definition to PhpGenerator.
at line 216
string|null
getClassName()
No description
Traits
SmartObject