| Total Complexity | 4 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | trait Rotate |
||
| 23 | { |
||
| 24 | public function rotate(Command $command) |
||
| 25 | { |
||
| 26 | /** @var Command|Rotatable $command */ |
||
| 27 | if (!$command->getRotation()->equals(Angle::_0())) { |
||
|
|
|||
| 28 | yield \sprintf('DIR %d', $command->getRotation()->getValue() + 1); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | public function resetRotate(Command $command) |
||
| 37 | } |
||
| 38 | } |
||
| 40 |