| 1 | <?php |
||
| 7 | abstract class AbstractManifestLoader implements ManifestLoaderInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $path; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var null|string |
||
| 16 | */ |
||
| 17 | private $rootKey; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $path |
||
| 21 | * |
||
| 22 | * @return mixed |
||
| 23 | */ |
||
| 24 | abstract protected function parse($path); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $path |
||
| 28 | * @param null|string $rootKey |
||
| 29 | */ |
||
| 30 | 8 | public function __construct($path, $rootKey = null) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | 7 | public function load() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | 4 | public function getPath() |
|
| 65 | } |
||
| 66 |