| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class MultiSource implements SourceInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var iterable<SourceInterface> |
||
| 13 | */ |
||
| 14 | private $sources; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param iterable<SourceInterface> $sources |
||
| 18 | */ |
||
| 19 | public function __construct(iterable $sources) |
||
| 20 | { |
||
| 21 | Assert::allIsInstanceOf($sources, SourceInterface::class); |
||
| 22 | $this->sources = $sources; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function toTexts(array $context = []): iterable |
||
| 33 | } |
||
| 34 | } |
||
| 37 |