| 1 | <?php |
||
| 20 | class YamlLoader |
||
| 21 | { |
||
| 22 | private $parameters = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @throws ParseException |
||
| 26 | */ |
||
| 27 | public function __construct() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Load data from yml files into associative array |
||
| 34 | * @throws ParseException |
||
| 35 | */ |
||
| 36 | private function load(): void |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Return list of params (key must be os, device, .etc) |
||
| 52 | * @param string $name |
||
| 53 | * @return array |
||
| 54 | * @throws DetectorException |
||
| 55 | */ |
||
| 56 | public function getParameter(string $name): array |
||
| 63 | } |