Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php |
||
9 | final class InvalidWorkSheetNameException extends LogicException implements XlsxException |
||
10 | { |
||
11 | private string $name; |
||
12 | |||
13 | private string $reason; |
||
14 | |||
15 | 14 | public function __construct(string $name, string $reason) |
|
16 | { |
||
17 | 14 | parent::__construct("Invalid worksheet name '$name': $reason"); |
|
18 | 14 | $this->name = $name; |
|
19 | 14 | $this->reason = $reason; |
|
20 | } |
||
21 | |||
22 | public function getName(): string |
||
25 | } |
||
26 | |||
27 | public function getReason(): string |
||
32 |