| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | } |
||
| 55 |