| 1 | <?php |
||
| 6 | class Uri |
||
| 7 | { |
||
| 8 | private $value = ''; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @param string $value |
||
| 12 | */ |
||
| 13 | public function __construct($value) |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | public function asString(): string |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param Uri $uri |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function equals(Uri $uri): bool |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param Pattern $pattern |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | public function matches(Pattern $pattern): bool |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param int $index |
||
| 46 | * @return string |
||
| 47 | * @throws EnsureException |
||
| 48 | * @throws UriException |
||
| 49 | */ |
||
| 50 | public function getPathSegment(int $index): string |
||
| 62 | |||
| 63 | } |
||
| 64 |