AdvisedConstructorInterceptorBuilder
class AdvisedConstructorInterceptorBuilder extends AbstractMethodInterceptorBuilder (View source)
A method interceptor build for constructors with advice.
Properties
protected ReflectionService | $reflectionService | from AbstractMethodInterceptorBuilder | |
protected Compiler | $compiler | from AbstractMethodInterceptorBuilder |
Methods
Builds interception PHP code for an advised constructor
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
void
build(string $methodName, array $methodMetaInformation, string $targetClassName)
Builds interception PHP code for an advised constructor
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.