Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class Callback implements DataProviderInterface |
||
15 | { |
||
16 | protected $callback = null; |
||
17 | protected $arguments = []; |
||
18 | |||
19 | /** |
||
20 | * @param array $datProviderConfig |
||
21 | */ |
||
22 | 2 | public function __construct($datProviderConfig = []) |
|
27 | ); |
||
28 | 2 | } |
|
29 | |||
30 | /** |
||
31 | * @param callable|null $callback |
||
32 | * @param array $arguments |
||
33 | * |
||
34 | * @return $this |
||
35 | */ |
||
36 | 2 | public function setCallback(callable $callback = null, array $arguments = []): DataProviderInterface |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param DataProviderFilterInterface|null $filter |
||
46 | * @return iterable |
||
47 | */ |
||
48 | 2 | public function getData(DataProviderFilterInterface $filter = null): iterable |
|
55 |