1 | <?php |
||
5 | class UrlPath |
||
6 | { |
||
7 | /** |
||
8 | * @var string[] |
||
9 | */ |
||
10 | private $urlKeys; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $identifier; |
||
16 | |||
17 | /** |
||
18 | * @param string $path |
||
19 | */ |
||
20 | public function __construct(string $path) |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getIdentifier() : string |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getFullPath() : string |
||
41 | |||
42 | /** |
||
43 | * @return string[] |
||
44 | */ |
||
45 | public function getAllPart() : array |
||
49 | |||
50 | /** |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getBeginningParts() : array |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getLastPart() : string |
||
65 | } |
||
66 |