1 | <?php |
||
7 | abstract class AbstractAdapter implements AdapterInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string path prefix |
||
11 | */ |
||
12 | protected $pathPrefix; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $pathSeparator = '/'; |
||
18 | |||
19 | /** |
||
20 | * Set the path prefix. |
||
21 | * |
||
22 | * @param string $prefix |
||
23 | * |
||
24 | * @return self |
||
25 | */ |
||
26 | 159 | public function setPathPrefix($prefix) |
|
36 | |||
37 | /** |
||
38 | * Get the path prefix. |
||
39 | * |
||
40 | * @return string path prefix |
||
41 | */ |
||
42 | 150 | public function getPathPrefix() |
|
46 | |||
47 | /** |
||
48 | * Prefix a path. |
||
49 | * |
||
50 | * @param string $path |
||
51 | * |
||
52 | * @return string prefixed path |
||
53 | */ |
||
54 | 144 | public function applyPathPrefix($path) |
|
68 | |||
69 | /** |
||
70 | * Remove a path prefix. |
||
71 | * |
||
72 | * @param string $path |
||
73 | * |
||
74 | * @return string path without the prefix |
||
75 | */ |
||
76 | 60 | public function removePathPrefix($path) |
|
86 | } |
||
87 |