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