PHP 클래스 Nette\DI\PhpGenerator

파일 보기 프로젝트 열기: nette/di 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ContainerBuilder $builder )
formatPhp ( $statement, $args ) : string Formats PHP statement.
generate ( $className ) : ClassType[] Generates PHP classes. First class is the container.

비공개 메소드들

메소드 설명
convertParameters ( array $parameters ) : Parameter[] Converts parameters from ServiceDefinition to PhpGenerator.
formatStatement ( Statement $statement ) : string Formats PHP code for class instantiating, function calling or property setting in PHP.
generateService ( $name ) : string Generates body of service method.

메소드 상세

__construct() 공개 메소드

public __construct ( ContainerBuilder $builder )
$builder ContainerBuilder

formatPhp() 공개 메소드

Formats PHP statement.
public formatPhp ( $statement, $args ) : string
리턴 string

generate() 공개 메소드

Generates PHP classes. First class is the container.
public generate ( $className ) : ClassType[]
리턴 Nette\PhpGenerator\ClassType[]