| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class ToggleCommand implements CommandInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | private $toggle = 1; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param DeviceInterface $device |
||
| 25 | * @param TypeInterface $type |
||
| 26 | */ |
||
| 27 | public function execute(DeviceInterface $device, TypeInterface $type): void |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return int |
||
| 36 | */ |
||
| 37 | public function getToggle(): int |
||
| 38 | { |
||
| 39 | return $this->toggle; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param int $toggle |
||
| 44 | */ |
||
| 45 | public function setToggle(int $toggle): void |
||
| 48 | } |
||
| 49 | } |
||
| 50 |