| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | class MessageProcessor implements ProcessorContract |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var SubscriberRepository |
||
| 16 | */ |
||
| 17 | private $subscriberRepository; |
||
| 18 | /** |
||
| 19 | * @var Dispatcher |
||
| 20 | */ |
||
| 21 | private $dispatcher; |
||
| 22 | /** |
||
| 23 | * @var string|null |
||
| 24 | */ |
||
| 25 | private $queue; |
||
| 26 | |||
| 27 | public function __construct(SubscriberRepository $subscriberRepository, Dispatcher $dispatcher, ?string $queue = null) |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param Message $message |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | public function process(Message $message): void |
||
| 55 |