| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Lamp implements DeviceInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $commandsRegistry = []; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $type |
||
| 21 | */ |
||
| 22 | public function execute(string $type): void |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $type |
||
| 33 | * @param CommandInterface $command |
||
| 34 | */ |
||
| 35 | public function setCommand(string $type, CommandInterface $command): void |
||
| 44 |