Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class QueenPlacement implements Move |
||
8 | { |
||
9 | /** @var int */ |
||
10 | private $row; |
||
11 | /** @var int */ |
||
12 | private $column; |
||
13 | |||
14 | public function __construct(int $row, int $column) |
||
15 | { |
||
16 | $this->row = $row; |
||
17 | $this->column = $column; |
||
18 | } |
||
19 | |||
20 | public function row(): int |
||
21 | { |
||
22 | return $this->row; |
||
23 | } |
||
24 | |||
25 | public function column(): int |
||
26 | { |
||
27 | return $this->column; |
||
28 | } |
||
29 | |||
30 | public function __toString(): string |
||
33 | } |
||
34 | } |
||
35 |