1 | <?php |
||
23 | class Path extends AbstractComponent implements PathInterface |
||
24 | { |
||
25 | use PathTrait; |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | */ |
||
30 | protected static $invalidCharactersRegex = ',[?#],'; |
||
31 | |||
32 | /** |
||
33 | * new instance |
||
34 | * |
||
35 | * @param string $path the component value |
||
36 | */ |
||
37 | 392 | public function __construct($path = '') |
|
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | 362 | public function getComponent() |
|
49 | |||
50 | /** |
||
51 | * validate the submitted data |
||
52 | * |
||
53 | * @param string $path |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | 380 | protected function validate($path) |
|
63 | } |
||
64 |