| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 15 | class FileExistsException extends \RuntimeException { |
||
| 16 | |||
| 17 | private $path; |
||
| 18 | private $altName; |
||
| 19 | |||
| 20 | public function __construct(string $path, string $altName) { |
||
| 21 | $this->path = $path; |
||
| 22 | $this->altName = $altName; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get conflicting file path |
||
| 27 | */ |
||
| 28 | public function getPath() { |
||
| 29 | return $this->path; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get suggested alternative file name to avoid the conflict |
||
| 34 | */ |
||
| 35 | public function getAltName() { |
||
| 37 | } |
||
| 38 | } |
||
| 39 |