1 | <?php |
||
14 | class UriFactory |
||
15 | { |
||
16 | /** |
||
17 | * Create new Uri from provided string. |
||
18 | * |
||
19 | * @param string $uri uri that will be parsed into URI object |
||
20 | * |
||
21 | * @return Uri Instance of Uri based on provided string |
||
22 | */ |
||
23 | 12 | public function create($uri) |
|
29 | |||
30 | /** |
||
31 | * Parse uri to array with individual parts |
||
32 | * |
||
33 | * @param string $uri url that will be parsed into array with individual parts |
||
34 | * |
||
35 | * @return Array Individual parts of uri in array |
||
36 | */ |
||
37 | 12 | protected function parseUrl($uri) |
|
52 | } |
||
53 |