| Total Complexity | 8 |
| Total Lines | 77 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class Layer implements LayerInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @Id |
||
| 24 | * @Column(type="integer") |
||
| 25 | * @GeneratedValue(strategy="IDENTITY") |
||
| 26 | * |
||
| 27 | */ |
||
| 28 | private int $id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @Column(type="string") |
||
| 32 | * |
||
| 33 | */ |
||
| 34 | private string $name; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @Column(type="integer") |
||
| 38 | * |
||
| 39 | */ |
||
| 40 | private int $width; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @Column(type="integer") |
||
| 44 | * |
||
| 45 | */ |
||
| 46 | private int $height; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @Column(type="boolean") |
||
| 50 | * |
||
| 51 | */ |
||
| 52 | private bool $is_hidden; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @Column(type="boolean", nullable=true) |
||
| 56 | * |
||
| 57 | */ |
||
| 58 | private ?bool $is_finished = null; |
||
| 59 | |||
| 60 | public function getId(): int |
||
| 61 | { |
||
| 62 | return $this->id; |
||
| 63 | } |
||
| 64 | |||
| 65 | public function getName(): string |
||
| 66 | { |
||
| 67 | return $this->name; |
||
| 68 | } |
||
| 69 | |||
| 70 | public function getWidth(): int |
||
| 71 | { |
||
| 72 | return $this->width; |
||
| 73 | } |
||
| 74 | |||
| 75 | public function getHeight(): int |
||
| 76 | { |
||
| 77 | return $this->height; |
||
| 78 | } |
||
| 79 | |||
| 80 | public function isHidden(): bool |
||
| 83 | } |
||
| 84 | |||
| 85 | public function isFinished(): bool |
||
| 86 | { |
||
| 87 | if ($this->is_finished === null) { |
||
| 92 | } |
||
| 93 | |||
| 94 | public function getSectorId(int $mapCx, int $mapCy): int |
||
| 99 |