Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class LinkAction extends AbstractAction |
||
6 | { |
||
7 | public string $url; |
||
8 | public string $target = '_self'; |
||
9 | |||
10 | public function __construct(?string $url = null) |
||
11 | { |
||
12 | $this->url = $url ?? url('/'); |
||
13 | } |
||
14 | |||
15 | public static function name(): string |
||
18 | } |
||
19 | |||
20 | public function setTarget(string $target): static |
||
25 | } |
||
26 | |||
27 | |||
28 | |||
29 | public function toArray(): array |
||
41 |