| 1 | <?php |
||
| 21 | class PHPArray implements Adapter |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Path to the config file |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $file; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Configuration |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | private $config; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Setup the adapter. |
||
| 39 | * |
||
| 40 | * @param array $conf |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function setup(array $conf) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Load config file to local file. |
||
| 52 | * |
||
| 53 | * @throws \phpbu\App\Exception |
||
| 54 | */ |
||
| 55 | private function load() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Return a value for a given path. |
||
| 65 | * |
||
| 66 | * @param string $path |
||
| 67 | * @return string |
||
| 68 | * @throws \phpbu\App\Exception |
||
| 69 | */ |
||
| 70 | public function getValue($path) |
||
| 82 | } |
||
| 83 |