| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | 6 | public function __construct( |
|
| 38 | 6 | $path, |
|
| 39 | 6 | $compressedSize, |
|
| 40 | 1 | $uncompressedSize, |
|
| 41 | 6 | $modificationTime, |
|
| 42 | 6 | $isCompressed = null, |
|
| 43 | 6 | $comment = null, |
|
| 44 | $crc32 = null) |
||
| 45 | { |
||
| 46 | $this->path = $path; |
||
| 47 | $this->compressedSize = $compressedSize; |
||
| 48 | $this->uncompressedSize = $uncompressedSize; |
||
| 49 | $this->modificationTime = $modificationTime; |
||
| 50 | if ($isCompressed === null) |
||
| 51 | $isCompressed = $uncompressedSize !== $compressedSize; |
||
| 52 | $this->isCompressed = $isCompressed; |
||
| 53 | $this->comment = $comment; |
||
| 54 | $this->crc32 = $crc32; |
||
| 55 | } |
||
| 57 |