Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function execute(Board $board, string $alias, array $operation) |
||
26 | { |
||
27 | $direction = $board->getActorDirection($alias); |
||
28 | $newDirection = static::$rotateMap[$operation['direction']][$direction]; |
||
|
|||
29 | $board->debug('Rotate[%s] From[%s] To[%s]', $operation['direction'], $direction, $newDirection); |
||
30 | $board->setActorDirection($alias, $newDirection); |
||
31 | } |
||
32 | |||
43 |
Late static binding only has effect in subclasses. A
final
class cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::
withself::
.To learn more about late static binding, please refer to the PHP core documentation.