PHP Класс Neos\Flow\Aop\Builder\AbstractMethodInterceptorBuilder

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$compiler Neos\Flow\ObjectManagement\Proxy\Compiler
$reflectionService Neos\Flow\Reflection\ReflectionService

Открытые методы

Метод Описание
build ( string $methodName, array $methodMetaInformation, string $targetClassName ) : string Builds method interception PHP code
injectCompiler ( Compiler $compiler ) : void
injectReflectionService ( ReflectionService $reflectionService ) : void Injects the reflection service

Защищенные методы

Метод Описание
buildAdvicesCode ( array $groupedAdvices, string $methodName, string $targetClassName, string $declaringClassName ) : string Builds the advice interception code, to be used in a method interceptor.
buildArraySetupCode ( array $array ) : string Builds a string containing PHP code to build the array given as input.
buildMethodArgumentsArrayCode ( string $className, string $methodName, boolean $useArgumentsArray = false ) : string Builds the PHP code for the method arguments array which is passed to the constructor of a new join point. Used in the method interceptor functions.
buildSavedConstructorParametersCode ( string $className ) : string Generates the parameters code needed to call the constructor with the saved parameters.

Описание методов

build() абстрактный публичный Метод

Builds method interception PHP code
abstract public build ( string $methodName, array $methodMetaInformation, string $targetClassName ) : string
$methodName string Name of the method to build an interceptor for
$methodMetaInformation array An array of method names and their meta information, including advices for the method (if any)
$targetClassName string Name of the target class to build the interceptor for
Результат string PHP code of the interceptor

buildAdvicesCode() защищенный Метод

Builds the advice interception code, to be used in a method interceptor.
protected buildAdvicesCode ( array $groupedAdvices, string $methodName, string $targetClassName, string $declaringClassName ) : string
$groupedAdvices array The advices grouped by advice type
$methodName string Name of the method the advice applies to
$targetClassName string Name of the target class
$declaringClassName string Name of the declaring class. This is usually the same as the $targetClassName. However, it is the introduction interface for introduced methods.
Результат string PHP code to be used in the method interceptor

buildArraySetupCode() защищенный Метод

Builds a string containing PHP code to build the array given as input.
protected buildArraySetupCode ( array $array ) : string
$array array
Результат string e.g. 'array()' or 'array(1 => 'bar')

buildMethodArgumentsArrayCode() защищенный Метод

Builds the PHP code for the method arguments array which is passed to the constructor of a new join point. Used in the method interceptor functions.
protected buildMethodArgumentsArrayCode ( string $className, string $methodName, boolean $useArgumentsArray = false ) : string
$className string Name of the declaring class of the method
$methodName string Name of the method to create arguments array code for
$useArgumentsArray boolean If set, the $methodArguments array will be built from $arguments instead of using the actual parameter variables.
Результат string The generated code to be used in an "array()" definition

buildSavedConstructorParametersCode() защищенный Метод

Generates the parameters code needed to call the constructor with the saved parameters.
protected buildSavedConstructorParametersCode ( string $className ) : string
$className string Name of the class the method is declared in
Результат string The generated parameters code

injectCompiler() публичный Метод

public injectCompiler ( Compiler $compiler ) : void
$compiler Neos\Flow\ObjectManagement\Proxy\Compiler
Результат void

injectReflectionService() публичный Метод

Injects the reflection service
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService The reflection service
Результат void

Описание свойств

$compiler защищенное свойство

protected Compiler,Neos\Flow\ObjectManagement\Proxy $compiler
Результат Neos\Flow\ObjectManagement\Proxy\Compiler

$reflectionService защищенное свойство

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Результат Neos\Flow\Reflection\ReflectionService