class PhpGenerator

Container PHP code generator.

Methods

__construct(ContainerBuilder $builder)

No description

ClassType
generate(string $className)

Generates PHP classes. First class is the container.

string
toString(ClassType $class)

No description

void
addInitialization(ClassType $class, CompilerExtension $extension)

No description

Method
generateMethod(Definition $def)

No description

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

Parameters

ContainerBuilder $builder

at line 36
ClassType generate(string $className)

Generates PHP classes. First class is the container.

Parameters

string $className

Return Value

ClassType

at line 67
string toString(ClassType $class)

No description

Parameters

ClassType $class

Return Value

string

at line 77
void addInitialization(ClassType $class, CompilerExtension $extension)

No description

Parameters

ClassType $class
CompilerExtension $extension

Return Value

void

at line 88
Method generateMethod(Definition $def)

No description

Parameters

Definition $def

Return Value

Method

at line 107
string formatStatement(Statement $statement)

Formats PHP code for class instantiating, function calling or property setting in PHP.

Parameters

Statement $statement

Return Value

string

at line 163
string formatPhp(string $statement, array $args)

internal  
 

Formats PHP statement.

Parameters

string $statement
array $args

Return Value

string

at line 169
array convertArguments(array $args)

No description

Parameters

array $args

Return Value

array

at line 196
string|null getClassName()

No description

Return Value

string|null