Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class Metadata implements DomainMetadata |
||
21 | { |
||
22 | /** @var State */ |
||
23 | private $state; |
||
24 | |||
25 | /** @var Collection */ |
||
26 | private $shards; |
||
27 | |||
28 | public function __construct(State $state, Collection $shards) |
||
29 | { |
||
30 | $this->state = $state; |
||
31 | $this->shards = $shards; |
||
32 | } |
||
33 | |||
34 | public function getState(): State |
||
35 | { |
||
36 | return $this->state; |
||
37 | } |
||
38 | |||
39 | public function replace(FinalItem $finalItem): void |
||
40 | { |
||
41 | $this->shards->replace($finalItem); |
||
42 | } |
||
43 | |||
44 | public function getShards(): Collection |
||
45 | { |
||
46 | return $this->shards; |
||
47 | } |
||
48 | |||
49 | public function readyToTransformation(): bool |
||
52 | } |
||
53 | } |
||
54 |