1 | <?php |
||
8 | final class PickAction implements ActionInterface |
||
9 | { |
||
10 | private static $moveMap = [ |
||
11 | 'left' => [0, -1], |
||
12 | 'right' => [0, 1], |
||
13 | 'up' => [-1, 0], |
||
14 | 'down' => [1, 0], |
||
15 | ]; |
||
16 | |||
17 | public function execute(Board $board, string $alias, array $operation) |
||
34 | |||
35 | public function getAlias(): string |
||
39 | |||
40 | public function getArguments(): array |
||
44 | } |
||
45 |
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.