Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | final class WorkBookCreateZipFileException extends RuntimeException implements XlsxException |
||
10 | { |
||
11 | private string $path; |
||
12 | |||
13 | private int $returnCode; |
||
14 | |||
15 | public function __construct(string $path, int $returnCode) |
||
16 | { |
||
17 | parent::__construct(sprintf('Unable to create zip file %s (err: %d)', $path, $returnCode)); |
||
18 | $this->path = $path; |
||
19 | $this->returnCode = $returnCode; |
||
20 | } |
||
21 | |||
22 | public function getPath(): string |
||
23 | { |
||
24 | return $this->path; |
||
25 | } |
||
26 | |||
27 | public function getReturnCode(): int |
||
30 | } |
||
31 | } |
||
32 |