| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | final class RouteKey implements Stringable |
||
| 23 | { |
||
| 24 | protected readonly string $key; |
||
| 25 | |||
| 26 | public static function make(string $key): self |
||
| 27 | { |
||
| 28 | return new self($key); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function __construct(string $key) |
||
| 32 | { |
||
| 33 | $this->key = $key; |
||
|
|
|||
| 34 | } |
||
| 35 | |||
| 36 | public function __toString(): string |
||
| 39 | } |
||
| 40 | |||
| 41 | public function get(): string |
||
| 44 | } |
||
| 45 | |||
| 46 | /** @param class-string<\Hyde\Pages\Concerns\HydePage> $pageClass */ |
||
| 47 | public static function fromPage(string $pageClass, string $identifier): self |
||
| 52 |