| 1 | <?php |
||
| 8 | abstract class AbstractCommandContainer |
||
| 9 | { |
||
| 10 | protected static $commands; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param $key |
||
| 14 | * |
||
| 15 | * @throws \Exception |
||
| 16 | * |
||
| 17 | * @return Command|void |
||
| 18 | */ |
||
| 19 | 7 | public function getAsObject($key) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param $commands |
||
| 33 | */ |
||
| 34 | 4 | public function setAll($commands) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | 14 | public function getAll() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $key |
||
| 49 | * |
||
| 50 | * @throws \Exception |
||
| 51 | * |
||
| 52 | * @return mixed |
||
| 53 | */ |
||
| 54 | 14 | public function getAllAsObject(string $key = null) |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @param array $row |
||
| 73 | * |
||
| 74 | * @throws \Exception |
||
| 75 | * |
||
| 76 | * @return Command |
||
| 77 | */ |
||
| 78 | 13 | private function mapToCommandObject(array $row) |
|
| 99 | } |
||
| 100 |