Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Location |
||
11 | { |
||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | private $row; |
||
16 | |||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | private $column; |
||
21 | |||
22 | public function __construct(int $row, int $column) |
||
26 | } |
||
27 | |||
28 | public static function match(Location $location1, Location $location2): bool |
||
29 | { |
||
30 | return $location1->getRow() === $location2->getRow() && $location1->getColumn() === $location2->getColumn(); |
||
31 | } |
||
32 | |||
33 | public function getRow(): int |
||
36 | } |
||
37 | |||
38 | public function getColumn(): int |
||
43 |