Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | final class ProgressStep implements Step |
||
13 | { |
||
14 | /** @var State */ |
||
15 | private $state; |
||
16 | |||
17 | /** @var Collection */ |
||
18 | private $shards; |
||
19 | |||
20 | public function __construct(State $state, Collection $shards) |
||
21 | { |
||
22 | $this->state = $state; |
||
23 | $this->shards = $shards; |
||
24 | } |
||
25 | |||
26 | public function getState(): State |
||
27 | { |
||
28 | return $this->state; |
||
29 | } |
||
30 | |||
31 | public function replace(FinalItem $finalItem): void |
||
32 | { |
||
33 | $this->shards->replace($finalItem); |
||
34 | } |
||
35 | |||
36 | public function getShards(): Collection |
||
39 | } |
||
40 | |||
41 | public function readyToTransformation(): bool |
||
42 | { |
||
46 |