Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class Simple implements DataProviderInterface |
||
16 | { |
||
17 | protected $data = []; |
||
18 | |||
19 | /** |
||
20 | * @param array $datProviderConfig |
||
21 | */ |
||
22 | 6 | public function __construct($datProviderConfig = []) |
|
23 | { |
||
24 | 6 | $this->setData($datProviderConfig['items'] ?? []); |
|
25 | 6 | } |
|
26 | |||
27 | /** |
||
28 | * @param DataProviderFilterInterface|null $filter |
||
29 | * @return iterable |
||
30 | */ |
||
31 | 2 | public function getData(DataProviderFilterInterface $filter = null): iterable |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param iterable $data |
||
38 | * |
||
39 | * @return $this |
||
40 | */ |
||
41 | 6 | public function setData(iterable $data = []) |
|
48 |