Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Uri |
||
22 | { |
||
23 | /** @var string * */ |
||
24 | private $uri; |
||
25 | |||
26 | public function __construct(string $uri) |
||
27 | { |
||
28 | $this->ensureIsValidUri($uri); |
||
29 | $this->uri = $uri; |
||
30 | } |
||
31 | |||
32 | public function asString(): string |
||
33 | { |
||
34 | return $this->uri; |
||
35 | } |
||
36 | |||
37 | public function equals($other): bool |
||
40 | } |
||
41 | |||
42 | private function ensureIsValidUri(string $uri): void |
||
46 | } |
||
47 | } |
||
49 |