| 1 | <?php |
||
| 23 | class Path extends AbstractComponent implements PathInterface |
||
| 24 | { |
||
| 25 | use PathTrait; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * new instance |
||
| 29 | * |
||
| 30 | * @param string $path the component value |
||
| 31 | */ |
||
| 32 | 476 | public function __construct($path = '') |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritdoc |
||
| 39 | */ |
||
| 40 | 452 | public function getContent() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritdoc |
||
| 47 | */ |
||
| 48 | 452 | public function __toString() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * validate the submitted data |
||
| 55 | * |
||
| 56 | * @param string $path |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 464 | protected function validate($path) |
|
| 64 | } |
||
| 65 |