PHP Class Go\Aop\Framework\DeclareErrorInterceptor

This interceptor can be used as active replacement for the @deprecated tag or to notify about probable issues with specific method.
Inheritance: extends BaseInterceptor, implements Go\Aop\Intercept\MethodInterceptor
Datei anzeigen Open project: goaop/framework

Public Methods

Method Description
__construct ( string $message, integer $level, string | null $pointcutExpression ) Default constructor for interceptor
invoke ( Go\Aop\Intercept\Joinpoint $joinpoint ) : mixed Implement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invoke {@link Joinpoint::proceed()}.
serialize ( ) : string Serializes an interceptor into string representation
unserialize ( string $serialized ) : void Unserialize an interceptor from the string

Private Methods

Method Description
getDeclareErrorAdvice ( ) : Closure Returns an advice

Method Details

__construct() public method

Default constructor for interceptor
public __construct ( string $message, integer $level, string | null $pointcutExpression )
$message string Text message for error
$level integer Level of error
$pointcutExpression string | null Pointcut expression

invoke() public method

Implement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invoke {@link Joinpoint::proceed()}.
public invoke ( Go\Aop\Intercept\Joinpoint $joinpoint ) : mixed
$joinpoint Go\Aop\Intercept\Joinpoint the method invocation joinpoint
return mixed the result of the call to {@link Joinpoint::proceed()}

serialize() public method

Serializes an interceptor into string representation
public serialize ( ) : string
return string the string representation of the object or null

unserialize() public method

Unserialize an interceptor from the string
public unserialize ( string $serialized ) : void
$serialized string The string representation of the object.
return void