Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
17 | final class InterceptableCore implements CoreInterface, HandlerInterface |
||
|
|||
18 | { |
||
19 | private InterceptorPipeline $pipeline; |
||
20 | |||
21 | 3 | public function __construct( |
|
22 | private readonly CoreInterface $core, |
||
23 | ?EventDispatcherInterface $dispatcher = null |
||
24 | ) { |
||
25 | 3 | $this->pipeline = new InterceptorPipeline($dispatcher); |
|
26 | } |
||
27 | |||
28 | 2 | public function addInterceptor(CoreInterceptorInterface|InterceptorInterface $interceptor): void |
|
29 | { |
||
30 | 2 | $this->pipeline->addInterceptor($interceptor); |
|
31 | } |
||
32 | |||
33 | 3 | public function callAction(string $controller, string $action, array $parameters = []): mixed |
|
34 | { |
||
35 | 3 | return $this->pipeline->withCore($this->core)->callAction($controller, $action, $parameters); |
|
36 | } |
||
37 | |||
38 | public function handle(CallContext $context): mixed |
||
41 | } |
||
42 | } |
||
43 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.