1 | <?php |
||
21 | class Uri extends BaseUri |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * Retrieve the path segment of the URI. |
||
26 | * |
||
27 | * This method always return a string; if no path is present it will return |
||
28 | * a '/' string to properly be routed by Aura Router. This differs from |
||
29 | * the PSR-7 recommended implementation with this method should return an |
||
30 | * empty string if the path is not present. |
||
31 | * |
||
32 | * @return string The path segment of the URI. |
||
33 | */ |
||
34 | 4 | public function getPath() |
|
39 | |||
40 | /** |
||
41 | * Factory method to create an URI object from an existing |
||
42 | * PSR-7 UriInterface. |
||
43 | * |
||
44 | * @param UriInterface $uri |
||
45 | * |
||
46 | * @return Uri |
||
47 | */ |
||
48 | 4 | public static function create(UriInterface $uri) |
|
52 | } |