AbstractMethodInterceptorBuilder
abstract class AbstractMethodInterceptorBuilder (View source)
An abstract class with builder functions for AOP method interceptors code builders.
Properties
protected ReflectionService | $reflectionService | ||
protected Compiler | $compiler |
Methods
Builds method interception PHP code
Builds a string containing PHP code to build the array given as input.
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.
Generates the parameters code needed to call the constructor with the saved parameters.
Builds the advice interception code, to be used in a method interceptor.
Details
void
injectReflectionService(ReflectionService $reflectionService)
Injects the reflection service
void
injectCompiler(Compiler $compiler)
No description
abstract void
build(string $methodName, array $methodMetaInformation, string $targetClassName)
Builds method interception PHP code
protected string
buildArraySetupCode(array $array)
Builds a string containing PHP code to build the array given as input.
protected string
buildMethodArgumentsArrayCode(string $className = null, string $methodName = null, bool $useArgumentsArray = false)
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 string
buildSavedConstructorParametersCode(string $className = null)
Generates the parameters code needed to call the constructor with the saved parameters.
protected string
buildAdvicesCode(array $groupedAdvices, string $methodName = null, string $targetClassName = null, string $declaringClassName = null)
Builds the advice interception code, to be used in a method interceptor.