| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 77.78% |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 26 | trait PathTrait |
||
| 27 | { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Current base path |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private ?string $path = null; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Set current base path (to add relative files to zip archive) |
||
| 38 | * |
||
| 39 | * @param string|null $path |
||
| 40 | * |
||
| 41 | * @return ZipInterface |
||
| 42 | * @throws ZipException |
||
| 43 | */ |
||
| 44 | 1 | public function setPath(?string $path = null): ZipInterface |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get current base path |
||
| 59 | * |
||
| 60 | * @return string|null |
||
| 61 | */ |
||
| 62 | 15 | public function getPath(): ?string |
|
| 67 |