Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class NotFoundShortUrlOptions extends AbstractOptions |
||
9 | { |
||
10 | /** |
||
11 | * @var bool |
||
12 | */ |
||
13 | private $enableRedirection = false; |
||
14 | /** |
||
15 | * @var string|null |
||
16 | */ |
||
17 | private $redirectTo; |
||
18 | |||
19 | public function isRedirectionEnabled(): bool |
||
20 | { |
||
21 | return $this->enableRedirection; |
||
22 | } |
||
23 | |||
24 | protected function setEnableRedirection(bool $enableRedirection = true): self |
||
28 | } |
||
29 | |||
30 | public function getRedirectTo(): string |
||
31 | { |
||
32 | return $this->redirectTo ?? ''; |
||
33 | } |
||
34 | |||
35 | protected function setRedirectTo(?string $redirectTo): self |
||
39 | } |
||
40 | } |
||
41 |