| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class TcpConsumerManager implements ConsumerManagerInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var ConsumerInterface[] |
||
| 11 | */ |
||
| 12 | private array $consumers; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param ConsumerInterface[] $consumers |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | public function setConsumers(array $consumers): void { |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param mixed $payload |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function handle($payload): void { |
||
| 27 | foreach ($this->consumers as $consumer) { |
||
| 28 | $consumer->handle($payload); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return ConsumerInterface[] |
||
| 34 | */ |
||
| 35 | public function list(): array { |
||
| 37 | } |
||
| 38 | } |