PHP 클래스 Go\Instrument\Transformer\ConstructorExecutionTransformer

또한 보기: https://github.com/php/php-src/blob/master/Zend/zend_language_parser.y new_expr: T_NEW class_name_reference ctor_arguments class_name_reference: class_name | new_variable class_name: T_STATIC | name namespace_name: T_STRING | namespace_name T_NS_SEPARATOR T_STRING name: namespace_name | T_NAMESPACE T_NS_SEPARATOR namespace_name | T_NS_SEPARATOR namespace_name ctor_arguments: / empty / | argument_list
상속: implements Go\Instrument\Transformer\SourceTransformer
파일 보기 프로젝트 열기: goaop/framework

공개 메소드들

메소드 설명
__call ( string $className, array $args ) : object Magic interceptor for instance creation
__get ( string $className ) : object Magic interceptor for instance creation
getInstance ( ) : static Singletone
transform ( StreamMetaData $metadata = null ) : void | boolean Rewrites all "new" expressions with our implementation

보호된 메소드들

메소드 설명
construct ( string $fullClassName, array $arguments = [] ) : object Default implementation for accessing joinpoint or creating a new one on-fly

메소드 상세

__call() 공개 메소드

Magic interceptor for instance creation
public __call ( string $className, array $args ) : object
$className string Name of the class to construct
$args array Arguments for the constructor
리턴 object Instance of required object

__get() 공개 메소드

Magic interceptor for instance creation
public __get ( string $className ) : object
$className string Name of the class to construct
리턴 object Instance of required object

construct() 보호된 정적인 메소드

Default implementation for accessing joinpoint or creating a new one on-fly
protected static construct ( string $fullClassName, array $arguments = [] ) : object
$fullClassName string Name of the class to create
$arguments array Arguments for constructor
리턴 object

getInstance() 공개 정적인 메소드

Singletone
public static getInstance ( ) : static
리턴 static

transform() 공개 메소드

Rewrites all "new" expressions with our implementation
public transform ( StreamMetaData $metadata = null ) : void | boolean
$metadata StreamMetaData Metadata for source
리턴 void | boolean Return false if transformation should be stopped