| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 5 | public function __construct(Client $ftpClient, File $ftpFile, string $path) |
|
| 37 | { |
||
| 38 | 5 | $this->ftpClient = $ftpClient; |
|
| 39 | 5 | $this->filename = $ftpFile->getFilename(); |
|
| 40 | 5 | $this->pathname = (!empty($path) ? rtrim($path, '/') . '/' : '') . $ftpFile->getFilename(); |
|
| 41 | 5 | $this->size = $ftpFile->getSize(); |
|
| 42 | 5 | $this->lastModified = $ftpFile->getLastModifyDate()->getTimestamp(); |
|
| 43 | 5 | } |
|
| 44 | |||
| 60 |