Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | final class Entry implements Move |
||
11 | { |
||
12 | /** @var int */ |
||
13 | private $number; |
||
14 | /** @var int */ |
||
15 | private $row; |
||
16 | /** @var int */ |
||
17 | private $column; |
||
18 | |||
19 | public function __construct(int $number, int $row, int $column) |
||
20 | { |
||
21 | $this->number = $number; |
||
22 | $this->row = $row; |
||
23 | $this->column = $column; |
||
24 | } |
||
25 | |||
26 | public static function allPossibilitiesFor(int $row, int $column): Moves |
||
33 | )); |
||
34 | } |
||
35 | |||
36 | public function number(): int |
||
37 | { |
||
38 | return $this->number; |
||
39 | } |
||
40 | |||
41 | public function column(): int |
||
42 | { |
||
43 | return $this->column; |
||
44 | } |
||
45 | |||
46 | public function row(): int |
||
49 | } |
||
50 | |||
51 | public function __toString(): string |
||
58 | ); |
||
59 | } |
||
60 | } |
||
61 |