Inheritance: extends BaseAdvice, implements Go\Aop\Intercept\Interceptor, implements Serializabl\Serializable
 public function testReturnsRawAdvice()
 {
     $sequence = array();
     $advice = $this->getAdvice($sequence);
     $interceptor = new BaseInterceptor($advice);
     $this->assertEquals($advice, $interceptor->getRawAdvice());
 }
 /**
  * Default constructor for interceptor
  *
  * @param string $message Text message for error
  * @param int $level Level of error
  * @param Pointcut $pointcut Pointcut instance where interceptor should be called
  */
 public function __construct($message, $level, Pointcut $pointcut = null)
 {
     $adviceMethod = $this->getDeclareErrorAdvice();
     $this->message = $message;
     $this->level = $level;
     parent::__construct($adviceMethod, -256, $pointcut);
 }
 /**
  * Default constructor for interceptor
  *
  * @param string $message Text message for error
  * @param int $level Level of error
  * @param string|null $pointcutExpression Pointcut expression
  */
 public function __construct($message, $level, $pointcutExpression)
 {
     $adviceMethod = self::getDeclareErrorAdvice();
     $this->message = $message;
     $this->level = $level;
     parent::__construct($adviceMethod, -256, $pointcutExpression);
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($adviceMethod, $order = 0, Pointcut $pointcut = null)
 {
     self::$advice = $adviceMethod;
     parent::__construct($adviceMethod, $order, $pointcut);
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($adviceMethod, $order = 0, $pointcutExpression = '')
 {
     self::$advice = $adviceMethod;
     parent::__construct($adviceMethod, $order, $pointcutExpression);
 }