| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class InitResponse extends BasicResponse |
||
| 14 | { |
||
| 15 | public string $name = ''; |
||
| 16 | public int $totalParts = 0; |
||
| 17 | public int $lastKnownPart = 0; |
||
| 18 | public int $partSize = 0; |
||
| 19 | public string $encoder = ''; |
||
| 20 | public string $check = ''; |
||
| 21 | |||
| 22 | 15 | public function setInitData( |
|
| 23 | Data $data, |
||
| 24 | string $encoder, |
||
| 25 | string $check |
||
| 26 | ): self |
||
| 27 | { |
||
| 28 | 15 | $this->name = $data->targetName; |
|
| 29 | 15 | $this->totalParts = $data->partsCount; |
|
| 30 | 15 | $this->lastKnownPart = $data->lastKnownPart; |
|
| 31 | 15 | $this->partSize = $data->bytesPerPart; |
|
| 32 | 15 | $this->encoder = $encoder; |
|
| 33 | 15 | $this->check = $check; |
|
| 34 | 15 | return $this; |
|
| 35 | } |
||
| 36 | |||
| 37 | 8 | public function setPassedInitData( |
|
| 53 | } |
||
| 54 | } |
||
| 55 |