| 1 | <?php |
||
| 8 | abstract class AbstractCommandContainer |
||
| 9 | { |
||
| 10 | protected static $commands; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param $key |
||
| 14 | * |
||
| 15 | * @return Command|void |
||
| 16 | */ |
||
| 17 | 6 | public function getAsObject($key) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param $commands |
||
| 31 | */ |
||
| 32 | 2 | public function setAll($commands) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | 10 | public function getAll() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param null $key |
||
| 47 | * |
||
| 48 | * @throws \Exception |
||
| 49 | * |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | 10 | public function getAllAsObject($key = null) |
|
| 72 | |||
| 73 | /** |
||
| 74 | * @param array $row |
||
| 75 | * |
||
| 76 | * @throws \Exception |
||
| 77 | * |
||
| 78 | * @return Command |
||
| 79 | */ |
||
| 80 | 9 | private function mapToCommandObject(array $row) |
|
| 101 | } |
||
| 102 |