Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | trait ChainTrait |
||
9 | { |
||
10 | /** |
||
11 | * @var Bus|null |
||
12 | */ |
||
13 | protected $nextBus = null; |
||
14 | |||
15 | public function setNext(Bus $bus) |
||
16 | { |
||
17 | $this->nextBus = $bus; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param Message $message |
||
22 | * @return mixed |
||
23 | * @throws RuntimeException |
||
24 | */ |
||
25 | protected function next(Message $message) |
||
34 | } |
||
35 | |||
36 | protected function hasNext(): bool |
||
39 | } |
||
40 | } |
||
41 |