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.

string|null
getClassName()

No description

Details

at line 30
__construct(ContainerBuilder $builder)

No description

Parameters

ContainerBuilder $builder

at line 39
ClassType generate(string $className)

Generates PHP classes. First class is the container.

Parameters

string $className

Return Value

ClassType

at line 73
string toString(ClassType $class)

No description

Parameters

ClassType $class

Return Value

string

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

No description

Parameters

ClassType $class
CompilerExtension $extension

Return Value

void

at line 94
Method generateMethod(Definition $def)

No description

Parameters

Definition $def

Return Value

Method

at line 113
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 196
string formatPhp(string $statement, array $args)

internal  
 

Formats PHP statement.

Parameters

string $statement
array $args

Return Value

string

at line 217
string|null getClassName()

No description

Return Value

string|null

Traits

SmartObject