Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 25 |
|
0.00% |
0 / 25 |
CRAP | |
0.00% |
0 / 1 |
Karte | |
0.00% |
0 / 25 |
|
0.00% |
0 / 25 |
650 | |
0.00% |
0 / 1 |
getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getKartenNr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setKartenNr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getLatitude | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setLatitude | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getLongitude | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setLongitude | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getYear | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setYear | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getScale | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setScale | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getPlace | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setPlace | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getZoom | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setZoom | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getKind | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setKind | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getPreviewImageId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setPreviewImageId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
__toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getEntityNameForStorage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getEntityIdForStorage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Entity\Karten; |
4 | |
5 | use Doctrine\ORM\Mapping as ORM; |
6 | use Olz\Entity\Common\DataStorageInterface; |
7 | use Olz\Entity\Common\DataStorageTrait; |
8 | use Olz\Entity\Common\OlzEntity; |
9 | use Olz\Repository\Karten\KartenRepository; |
10 | |
11 | #[ORM\Table(name: 'karten')] |
12 | #[ORM\Index(name: 'typ_index', columns: ['on_off', 'typ'])] |
13 | #[ORM\Entity(repositoryClass: KartenRepository::class)] |
14 | class Karte extends OlzEntity implements DataStorageInterface { |
15 | use DataStorageTrait; |
16 | |
17 | #[ORM\Id] |
18 | #[ORM\Column(type: 'integer', nullable: false)] |
19 | #[ORM\GeneratedValue] |
20 | private int $id; |
21 | |
22 | #[ORM\Column(type: 'integer', nullable: true)] |
23 | private ?int $kartennr; |
24 | |
25 | #[ORM\Column(type: 'string', nullable: false)] |
26 | private string $name; |
27 | |
28 | #[ORM\Column(type: 'float', nullable: true)] |
29 | private ?float $latitude; |
30 | |
31 | #[ORM\Column(type: 'float', nullable: true)] |
32 | private ?float $longitude; |
33 | |
34 | #[ORM\Column(type: 'string', nullable: true)] |
35 | private ?string $jahr; |
36 | |
37 | #[ORM\Column(type: 'string', nullable: true)] |
38 | private ?string $massstab; |
39 | |
40 | #[ORM\Column(type: 'string', nullable: true)] |
41 | private ?string $ort; |
42 | |
43 | #[ORM\Column(type: 'integer', nullable: true)] |
44 | private ?int $zoom; |
45 | |
46 | #[ORM\Column(type: 'string', nullable: true)] |
47 | private ?string $typ; |
48 | |
49 | #[ORM\Column(type: 'string', nullable: true)] |
50 | private ?string $vorschau; |
51 | |
52 | public function getId(): ?int { |
53 | return $this->id ?? null; |
54 | } |
55 | |
56 | public function setId(int $new_value): void { |
57 | $this->id = $new_value; |
58 | } |
59 | |
60 | public function getKartenNr(): ?int { |
61 | return $this->kartennr; |
62 | } |
63 | |
64 | public function setKartenNr(?int $new_value): void { |
65 | $this->kartennr = $new_value; |
66 | } |
67 | |
68 | public function getName(): string { |
69 | return $this->name; |
70 | } |
71 | |
72 | public function setName(string $new_value): void { |
73 | $this->name = $new_value; |
74 | } |
75 | |
76 | public function getLatitude(): ?float { |
77 | return $this->latitude; |
78 | } |
79 | |
80 | public function setLatitude(?float $new_value): void { |
81 | $this->latitude = $new_value; |
82 | } |
83 | |
84 | public function getLongitude(): ?float { |
85 | return $this->longitude; |
86 | } |
87 | |
88 | public function setLongitude(?float $new_value): void { |
89 | $this->longitude = $new_value; |
90 | } |
91 | |
92 | public function getYear(): ?string { |
93 | return $this->jahr; |
94 | } |
95 | |
96 | public function setYear(?string $new_value): void { |
97 | $this->jahr = $new_value; |
98 | } |
99 | |
100 | public function getScale(): ?string { |
101 | return $this->massstab; |
102 | } |
103 | |
104 | public function setScale(?string $new_value): void { |
105 | $this->massstab = $new_value; |
106 | } |
107 | |
108 | public function getPlace(): ?string { |
109 | return $this->ort; |
110 | } |
111 | |
112 | public function setPlace(?string $new_value): void { |
113 | $this->ort = $new_value; |
114 | } |
115 | |
116 | public function getZoom(): ?int { |
117 | return $this->zoom; |
118 | } |
119 | |
120 | public function setZoom(?int $new_value): void { |
121 | $this->zoom = $new_value; |
122 | } |
123 | |
124 | public function getKind(): ?string { |
125 | return $this->typ; |
126 | } |
127 | |
128 | public function setKind(?string $new_value): void { |
129 | $this->typ = $new_value; |
130 | } |
131 | |
132 | public function getPreviewImageId(): ?string { |
133 | return $this->vorschau; |
134 | } |
135 | |
136 | public function setPreviewImageId(?string $new_value): void { |
137 | $this->vorschau = $new_value; |
138 | } |
139 | |
140 | // --- |
141 | |
142 | public function __toString(): string { |
143 | return "Karte (ID: {$this->getId()})"; |
144 | } |
145 | |
146 | public static function getEntityNameForStorage(): string { |
147 | return 'karten'; |
148 | } |
149 | |
150 | public function getEntityIdForStorage(): string { |
151 | return "{$this->getId()}"; |
152 | } |
153 | } |