PHP Class Go\Aop\Framework\ReflectionConstructorInvocation

Inheritance: extends AbstractInvocation, implements Go\Aop\Intercept\ConstructorInvocation
Datei anzeigen Open project: goaop/framework

Protected Properties

Property Type Description
$class ReflectionClass Reflection class
$instance object | null Instance of created class, can be used for Around or After types of advices

Public Methods

Method Description
__construct ( string $className, string $type, array $advices ) Constructor for constructor invocation :)
__invoke ( array $arguments = [] ) : mixed Invokes current constructor invocation with all interceptors
__toString ( ) : string Returns a friendly description of current joinpoint
getConstructor ( ) : ReflectionMetho\ReflectionMethod | null Gets the constructor being called.
getStaticPart ( ) : null | ReflectionMetho\ReflectionMethod Returns the static part of this joinpoint.
getThis ( ) : object | null Returns the object that holds the current joinpoint's static part.
proceed ( ) : mixed Proceed to the next interceptor in the Chain

Method Details

__construct() public method

Constructor for constructor invocation :)
public __construct ( string $className, string $type, array $advices )
$className string Class name
$type string
$advices array array List of advices for this invocation

__invoke() final public method

Invokes current constructor invocation with all interceptors
final public __invoke ( array $arguments = [] ) : mixed
$arguments array
return mixed

__toString() final public method

Returns a friendly description of current joinpoint
final public __toString ( ) : string
return string

getConstructor() public method

Gets the constructor being called.
public getConstructor ( ) : ReflectionMetho\ReflectionMethod | null
return ReflectionMetho\ReflectionMethod | null the constructor being called or null if it is absent.

getStaticPart() public method

Returns the static part of this joinpoint.
public getStaticPart ( ) : null | ReflectionMetho\ReflectionMethod
return null | ReflectionMetho\ReflectionMethod

getThis() public method

Returns the object that holds the current joinpoint's static part.
public getThis ( ) : object | null
return object | null the object (can be null if the accessible object is static).

proceed() final public method

Typically this method is called inside previous closure, as instance of Joinpoint is passed to callback Do not call this method directly, only inside callback closures.
final public proceed ( ) : mixed
return mixed

Property Details

$class protected_oe property

Reflection class
protected ReflectionClass $class
return ReflectionClass

$instance protected_oe property

Instance of created class, can be used for Around or After types of advices
protected object|null $instance
return object | null