Total Complexity | 6 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ExecutorChain implements Executor |
||
9 | { |
||
10 | /** |
||
11 | * @var Executor[] |
||
12 | */ |
||
13 | private $executors; |
||
14 | |||
15 | public function __construct(array $executors = []) |
||
19 | } |
||
20 | } |
||
21 | |||
22 | public function add(Executor $executor): self |
||
23 | { |
||
24 | $this->executors[] = $executor; |
||
25 | |||
26 | return $this; |
||
27 | } |
||
28 | |||
29 | public function execute($payload, Queue $queue): void |
||
42 | } |
||
43 | } |
||
44 |