| 1 | <?php |
||
| 5 | class FileHandler |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | private $arguments; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * FileHandler constructor. |
||
| 14 | * @param array $arguments |
||
| 15 | */ |
||
| 16 | 10 | public function __construct(array $arguments) |
|
| 20 | |||
| 21 | 4 | public function resolvePath($currentPath, $importPath) { |
|
| 22 | 4 | if (substr($importPath, 0, 1) == DIRECTORY_SEPARATOR) { |
|
| 23 | 1 | return $this->preparePath($importPath); |
|
| 24 | } else { |
||
| 25 | 3 | $path = dirname($currentPath) . DIRECTORY_SEPARATOR . $importPath; |
|
| 26 | 3 | return $this->preparePath($path); |
|
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 30 | 7 | public function preparePath($path) { |
|
| 37 | |||
| 38 | public function getArgumentValue($name) { |
||
| 47 | |||
| 48 | 1 | public function initDirectory($dir) { |
|
| 53 | } |
||
| 54 |