1 | <?php |
||
23 | class DelegatingIoHandler implements IoHandlerInterface |
||
24 | { |
||
25 | /** |
||
26 | * List of nested handlers |
||
27 | * |
||
28 | * @var IoHandlerInterface[] |
||
29 | */ |
||
30 | private $handlers; |
||
31 | |||
32 | /** |
||
33 | * DelegatingIoHandler constructor. |
||
34 | * |
||
35 | * @param IoHandlerInterface[] $handlers List of nested handlers |
||
36 | */ |
||
37 | public function __construct(array $handlers) |
||
41 | |||
42 | /** |
||
43 | * @inheritDoc |
||
44 | */ |
||
45 | public function supports(OperationInterface $operation) |
||
49 | |||
50 | /** |
||
51 | * @inheritDoc |
||
52 | */ |
||
53 | public function handle( |
||
65 | |||
66 | /** |
||
67 | * Return handler for given operation if there is any |
||
68 | * |
||
69 | * @param OperationInterface $operation Operation to get handler for |
||
70 | * |
||
71 | * @return IoHandlerInterface|null |
||
72 | */ |
||
73 | private function getHandler(OperationInterface $operation) |
||
83 | } |
||
84 |