1 | <?php |
||
8 | class Path extends AbstractUriPart |
||
9 | { |
||
10 | protected static $unencoded_characters = array(); |
||
11 | protected static $compositions = array(); |
||
12 | |||
13 | protected static $part_pattern; |
||
14 | |||
15 | /** |
||
16 | * Host constructor. Accepts a string representing a URI host component. Construction will throw an exception if |
||
17 | * the host is not a string. |
||
18 | * |
||
19 | * path-abempty = *( "/" segment ) |
||
20 | * path-absolute = "/" [ segment-nz *( "/" segment ) ] |
||
21 | * path-noscheme = segment-nz-nc *( "/" segment ) |
||
22 | * path-rootless = segment-nz *( "/" segment ) |
||
23 | * path-empty = 0<pchar> |
||
24 | * |
||
25 | * segment = *pchar |
||
26 | * segment-nz = 1*pchar |
||
27 | * segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" ) |
||
28 | * ; non-zero-length segment without any colon ":" |
||
29 | * |
||
30 | * pchar = unreserved / pct-encoded / sub-delims / ":" / "@" |
||
31 | * |
||
32 | * @param string $path |
||
33 | */ |
||
34 | 6 | public function __construct($path) |
|
38 | } |
||
39 |