| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | final class DecoratedProvider implements DataProviderInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var DataProviderDecoratorInterface[] |
||
| 10 | */ |
||
| 11 | private $decorators; |
||
| 12 | /** |
||
| 13 | * @var DataProviderInterface |
||
| 14 | */ |
||
| 15 | private $dataProvider; |
||
| 16 | |||
| 17 | 2 | public function __construct(DataProviderInterface $dataProvider, DataProviderDecoratorInterface ...$decorators) |
|
| 18 | { |
||
| 19 | 2 | $this->decorators = $decorators; |
|
| 20 | 2 | $this->dataProvider = $dataProvider; |
|
| 21 | 2 | } |
|
| 22 | |||
| 23 | 2 | public function provide(): array |
|
| 32 | } |
||
| 33 | } |
||
| 34 |