| 1 | <?php |
||
| 8 | class DeviceList |
||
| 9 | { |
||
| 10 | private $yamlFilepath; |
||
| 11 | private $devices = array(); |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $yamlFilepath Filename of Yaml file containing model list |
||
| 15 | * @throws \Exception if file is not found or parsing error. |
||
| 16 | */ |
||
| 17 | 4 | public function __construct($yamlFilepath) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Parse Yaml file with device data. |
||
| 32 | * |
||
| 33 | * @throws \Exception if Yaml couldn't be parsed. |
||
| 34 | */ |
||
| 35 | 3 | private function parseYaml() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * Returns the list of devices and their architectures. |
||
| 60 | * |
||
| 61 | * @return array List of devices and architectures. |
||
| 62 | */ |
||
| 63 | 2 | public function getDevices() |
|
| 67 | } |
||
| 68 |