1 | <?php |
||
11 | class ArrayProvider implements ProviderInterface |
||
12 | { |
||
13 | use IdentificationTrait; |
||
14 | |||
15 | private $data = []; |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $identifier; |
||
20 | |||
21 | 6 | public function __construct(string $id, array $data) |
|
27 | |||
28 | /** |
||
29 | * @param array $data |
||
30 | * @throws InvalidDataException |
||
31 | */ |
||
32 | 6 | private function validate(array $data) |
|
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | 3 | public function getCask(): \Generator |
|
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | 1 | public function getEstimatedSize(): int |
|
68 | } |
||
69 |