| 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 | 391 | public function __construct($path = '') |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | 361 | public function getContent() |
|
| 46 | { |
||
| 47 | 361 | return $this->encodePath($this->data); |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * validate the submitted data |
||
| 52 | * |
||
| 53 | * @param string $path |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 379 | protected function validate($path) |
|
| 63 | } |
||
| 64 |