| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class TestedMessageConsumer implements MessageConsumer |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | private $failAfterNumberOfMessages; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | private $numberOfMessagesProcessed = 0; |
||
| 22 | |||
| 23 | 4 | public function __construct(int $failAfterNumberOfMessages) |
|
| 26 | 4 | } |
|
| 27 | |||
| 28 | 4 | public function handle(Message $message): void |
|
| 32 | } |
||
| 33 | 4 | } |
|
| 34 | |||
| 35 | 1 | public function numberOfMessagesProcessed(): int |
|
| 40 |