1 | <?php |
||
24 | final class DeclareErrorInterceptor extends AbstractInterceptor |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Error message to show for this interceptor |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $message; |
||
33 | |||
34 | /** |
||
35 | * Default level of error |
||
36 | * |
||
37 | * @var int |
||
38 | */ |
||
39 | protected $level; |
||
40 | |||
41 | /** |
||
42 | * Default constructor for interceptor |
||
43 | */ |
||
44 | public function __construct(string $message, int $errorLevel, string $pointcutExpression) |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public static function unserializeAdvice(array $adviceData): Closure |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | public function invoke(Joinpoint $joinpoint) |
||
74 | |||
75 | /** |
||
76 | * Returns an advice |
||
77 | */ |
||
78 | private static function getDeclareErrorAdvice(): Closure |
||
94 | } |
||
95 |