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