Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | #[MappedSuperclass] |
||
12 | class AbstractData implements CellDataInterface |
||
13 | { |
||
14 | #[Id] |
||
15 | #[Column(type: 'integer')] |
||
16 | private int $x = 0; |
||
17 | |||
18 | #[Id] |
||
19 | #[Column(type: 'integer')] |
||
20 | private int $y = 0; |
||
21 | |||
22 | 7 | public function __construct(int $x, int $y) |
|
23 | { |
||
24 | 7 | $this->x = $x; |
|
25 | 7 | $this->y = $y; |
|
26 | } |
||
27 | |||
28 | 5 | public function getPosX(): int |
|
29 | { |
||
30 | 5 | return $this->x; |
|
31 | } |
||
32 | |||
33 | 5 | public function getPosY(): int |
|
36 | } |
||
37 | } |
||
38 |