| Total Complexity | 7 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class Collector implements Reader |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Reader[] |
||
| 13 | */ |
||
| 14 | private $items = []; |
||
| 15 | |||
| 16 | public function __construct(iterable $items = []) |
||
| 17 | { |
||
| 18 | foreach ($items as $item) { |
||
| 19 | $this->add($item); |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 23 | public function add(Reader $reader): void |
||
| 24 | { |
||
| 25 | $this->items[] = $reader; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function supports($context): bool |
||
| 37 | } |
||
| 38 | |||
| 39 | public function extract($context): Metadata |
||
| 50 | } |
||
| 51 | } |
||
| 52 |