| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | class RedirectException extends Exception |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var string Path on which to be redirected. |
||
| 26 | */ |
||
| 27 | private $path = ''; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Class Constructor. |
||
| 31 | * |
||
| 32 | * @param string $path Path on which to be redirected. |
||
| 33 | */ |
||
| 34 | 6 | public function __construct(string $path = '') |
|
| 39 | 6 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Set path. |
||
| 43 | * |
||
| 44 | * @param string $path Path on which to be redirected. |
||
| 45 | * @return void |
||
| 46 | */ |
||
| 47 | 1 | public function setPath(string $path): void |
|
| 48 | { |
||
| 49 | 1 | $this->path = $path; |
|
| 50 | 1 | } |
|
| 51 | |||
| 52 | /** |
||
| 53 | * Get path. |
||
| 54 | * |
||
| 55 | * @return string Path on which to be redirected. |
||
| 56 | */ |
||
| 57 | 3 | public function getPath(): string |
|
| 60 | } |
||
| 61 | } |
||
| 62 |