Total Complexity | 7 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | final class DataProvider { |
||
16 | use \Nette\SmartObject; |
||
17 | |||
18 | public const ANNOTATION_NAME = "data"; |
||
19 | public const PROVIDER_ANNOTATION_NAME = "dataProvider"; |
||
20 | |||
21 | private Reader $annotationsReader; |
||
22 | |||
23 | 1 | public function __construct(Reader $annotationsReader) { |
|
25 | 1 | } |
|
26 | |||
27 | /** |
||
28 | * @throws InvalidDataProviderException |
||
29 | */ |
||
30 | 1 | public function getData(object $class, string $method): array { |
|
55 | ?> |