Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class Redirect |
||
14 | { |
||
15 | public string $path; |
||
16 | public string $destination; |
||
17 | |||
18 | public function __construct(string $path, string $destination) |
||
19 | { |
||
20 | $this->path = $path; |
||
21 | $this->destination = $destination; |
||
22 | } |
||
23 | |||
24 | public static function make(string $path, string $destination): static |
||
25 | { |
||
26 | return new static($path, $destination); |
||
27 | } |
||
28 | |||
29 | public function render(): string |
||
42 | </body> |
||
43 | </html> |
||
44 | HTML; |
||
45 | } |
||
46 | |||
47 | public function store(): static |
||
52 | } |
||
53 | } |
||
54 |