public function __construct(Closure $adviceMethod, $order = 0, $pointcutExpression = '')
{
$this->adviceMethod = $adviceMethod;
$this->order = $order;
$this->pointcutExpression = $pointcutExpression;
}
/** * 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); }