| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | final class Output implements OutputInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var int |
||
| 9 | */ |
||
| 10 | private int $count; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var iterable<array> |
||
| 14 | */ |
||
| 15 | private iterable $items; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param int $count |
||
| 19 | * @param iterable<array> $items |
||
| 20 | */ |
||
| 21 | public function __construct(int $count, iterable $items) |
||
| 22 | { |
||
| 23 | $this->count = $count; |
||
| 24 | $this->items = $items; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function getCount(): int |
||
| 31 | { |
||
| 32 | return $this->count; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function getItems(): iterable |
||
| 41 | } |
||
| 42 | } |
||
| 43 |