Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
67 / 67 |
|
100.00% |
45 / 45 |
CRAP | |
100.00% |
1 / 1 |
| AnschriftMitLieferadresse | |
100.00% |
67 / 67 |
|
100.00% |
45 / 45 |
47 | |
100.00% |
1 / 1 |
| getAnrede | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setAnrede | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getKundenNr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
2 | |||
| setKundenNr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| padKundenNr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getLand | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLand | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferAnrede | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferAnrede | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferKundenNr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
2 | |||
| setLieferKundenNr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferLand | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferLand | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferName | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferName2 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferName2 | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferName3 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferName3 | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferOrt | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferOrt | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferPlz | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferPlz | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferStrasse | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferStrasse | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferTitel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferTitel | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferVorname | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferVorname | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setName | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getName2 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setName2 | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getName3 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setName3 | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getOrt | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setOrt | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getPlz | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setPlz | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getStrasse | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setStrasse | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getTitel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setTitel | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getVorname | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setVorname | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Satag\AmicronEntityBundle\Entity; |
| 6 | |
| 7 | use Doctrine\DBAL\Types\Types; |
| 8 | use Doctrine\ORM\Mapping as ORM; |
| 9 | use Satag\AmicronEntityBundle\Util\Pad; |
| 10 | |
| 11 | #[ORM\Embeddable] |
| 12 | class AnschriftMitLieferadresse |
| 13 | { |
| 14 | #[ORM\Column(name: 'anrede', type: Types::STRING, length: 25, nullable: true)] |
| 15 | protected ?string $anrede = null; |
| 16 | |
| 17 | #[ORM\Column(name: 'kundennr', type: Types::STRING, length: 8, nullable: true)] |
| 18 | protected ?string $kundenNr = null; |
| 19 | |
| 20 | #[ORM\Column(name: 'land', type: Types::STRING, length: 3, nullable: true)] |
| 21 | protected ?string $land = null; |
| 22 | |
| 23 | #[ORM\Column(name: 'lfradranrede', type: Types::STRING, length: 25, nullable: true)] |
| 24 | protected ?string $lieferAnrede = null; |
| 25 | |
| 26 | #[ORM\Column(name: 'lfradrnr', type: Types::STRING, length: 8, nullable: true)] |
| 27 | protected ?string $lieferKundenNr = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'lfradrland', type: Types::STRING, length: 3, nullable: true)] |
| 30 | protected ?string $lieferLand = null; |
| 31 | |
| 32 | #[ORM\Column(name: 'lfradrname', type: Types::STRING, length: 40, nullable: true)] |
| 33 | protected ?string $lieferName = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'lfradrname2', type: Types::STRING, length: 100, nullable: true)] |
| 36 | protected ?string $lieferName2 = null; |
| 37 | |
| 38 | #[ORM\Column(name: 'lfradrname3', type: Types::STRING, length: 100, nullable: true)] |
| 39 | protected ?string $lieferName3 = null; |
| 40 | |
| 41 | #[ORM\Column(name: 'lfradrort', type: Types::STRING, length: 40, nullable: true)] |
| 42 | protected ?string $lieferOrt = null; |
| 43 | |
| 44 | #[ORM\Column(name: 'lfradrplz', type: Types::STRING, length: 9, nullable: true)] |
| 45 | protected ?string $lieferPlz = null; |
| 46 | |
| 47 | #[ORM\Column(name: 'lfradrstrasse', type: Types::STRING, length: 40, nullable: true)] |
| 48 | protected ?string $lieferStrasse = null; |
| 49 | |
| 50 | #[ORM\Column(name: 'lfradrtitel', type: Types::STRING, length: 25, nullable: true)] |
| 51 | protected ?string $lieferTitel = null; |
| 52 | |
| 53 | #[ORM\Column(name: 'lfradrvorname', type: Types::STRING, length: 30, nullable: true)] |
| 54 | protected ?string $lieferVorname = null; |
| 55 | |
| 56 | #[ORM\Column(name: 'name', type: Types::STRING, length: 40, nullable: true)] |
| 57 | protected ?string $name = null; |
| 58 | |
| 59 | #[ORM\Column(name: 'name2', type: Types::STRING, length: 100, nullable: true)] |
| 60 | protected ?string $name2 = null; |
| 61 | |
| 62 | #[ORM\Column(name: 'name3', type: Types::STRING, length: 100, nullable: true)] |
| 63 | protected ?string $name3 = null; |
| 64 | |
| 65 | #[ORM\Column(name: 'ort', type: Types::STRING, length: 40, nullable: true)] |
| 66 | protected ?string $ort = null; |
| 67 | |
| 68 | #[ORM\Column(name: 'plz', type: Types::STRING, length: 9, nullable: true)] |
| 69 | protected ?string $plz = null; |
| 70 | |
| 71 | #[ORM\Column(name: 'strasse', type: Types::STRING, length: 40, nullable: true)] |
| 72 | protected ?string $strasse = null; |
| 73 | |
| 74 | #[ORM\Column(name: 'titel', type: Types::STRING, length: 25, nullable: true)] |
| 75 | protected ?string $titel = null; |
| 76 | |
| 77 | #[ORM\Column(name: 'vorname', type: Types::STRING, length: 30, nullable: true)] |
| 78 | protected ?string $vorname = null; |
| 79 | |
| 80 | public function getAnrede(): ?string |
| 81 | { |
| 82 | return $this->anrede; |
| 83 | } |
| 84 | |
| 85 | public function setAnrede(?string $anrede): self |
| 86 | { |
| 87 | $this->anrede = $anrede; |
| 88 | |
| 89 | return $this; |
| 90 | } |
| 91 | |
| 92 | public function getKundenNr(): ?string |
| 93 | { |
| 94 | return $this->kundenNr ? trim($this->kundenNr) : null; |
| 95 | } |
| 96 | |
| 97 | public function setKundenNr(?string $kundennr): self |
| 98 | { |
| 99 | $this->kundenNr = self::padKundenNr($kundennr); |
| 100 | |
| 101 | return $this; |
| 102 | } |
| 103 | |
| 104 | public static function padKundenNr(?string $kundenNr): ?string |
| 105 | { |
| 106 | return Pad::number($kundenNr, 8); |
| 107 | } |
| 108 | |
| 109 | public function getLand(): ?string |
| 110 | { |
| 111 | return $this->land; |
| 112 | } |
| 113 | |
| 114 | public function setLand(?string $land): self |
| 115 | { |
| 116 | $this->land = $land; |
| 117 | |
| 118 | return $this; |
| 119 | } |
| 120 | |
| 121 | public function getLieferAnrede(): ?string |
| 122 | { |
| 123 | return $this->lieferAnrede; |
| 124 | } |
| 125 | |
| 126 | public function setLieferAnrede(?string $lieferAnrede): self |
| 127 | { |
| 128 | $this->lieferAnrede = $lieferAnrede; |
| 129 | |
| 130 | return $this; |
| 131 | } |
| 132 | |
| 133 | public function getLieferKundenNr(): ?string |
| 134 | { |
| 135 | return $this->lieferKundenNr ? trim($this->lieferKundenNr) : null; |
| 136 | } |
| 137 | |
| 138 | public function setLieferKundenNr(?string $lieferKundenNr): self |
| 139 | { |
| 140 | $this->lieferKundenNr = self::padKundenNr($lieferKundenNr); |
| 141 | |
| 142 | return $this; |
| 143 | } |
| 144 | |
| 145 | public function getLieferLand(): ?string |
| 146 | { |
| 147 | return $this->lieferLand; |
| 148 | } |
| 149 | |
| 150 | public function setLieferLand(?string $lieferLand): self |
| 151 | { |
| 152 | $this->lieferLand = $lieferLand; |
| 153 | |
| 154 | return $this; |
| 155 | } |
| 156 | |
| 157 | public function getLieferName(): ?string |
| 158 | { |
| 159 | return $this->lieferName; |
| 160 | } |
| 161 | |
| 162 | public function setLieferName(?string $lieferName): self |
| 163 | { |
| 164 | $this->lieferName = $lieferName; |
| 165 | |
| 166 | return $this; |
| 167 | } |
| 168 | |
| 169 | public function getLieferName2(): ?string |
| 170 | { |
| 171 | return $this->lieferName2; |
| 172 | } |
| 173 | |
| 174 | public function setLieferName2(?string $lieferName2): self |
| 175 | { |
| 176 | $this->lieferName2 = $lieferName2; |
| 177 | |
| 178 | return $this; |
| 179 | } |
| 180 | |
| 181 | public function getLieferName3(): ?string |
| 182 | { |
| 183 | return $this->lieferName3; |
| 184 | } |
| 185 | |
| 186 | public function setLieferName3(?string $lieferName3): self |
| 187 | { |
| 188 | $this->lieferName3 = $lieferName3; |
| 189 | |
| 190 | return $this; |
| 191 | } |
| 192 | |
| 193 | public function getLieferOrt(): ?string |
| 194 | { |
| 195 | return $this->lieferOrt; |
| 196 | } |
| 197 | |
| 198 | public function setLieferOrt(?string $lieferOrt): self |
| 199 | { |
| 200 | $this->lieferOrt = $lieferOrt; |
| 201 | |
| 202 | return $this; |
| 203 | } |
| 204 | |
| 205 | public function getLieferPlz(): ?string |
| 206 | { |
| 207 | return $this->lieferPlz; |
| 208 | } |
| 209 | |
| 210 | public function setLieferPlz(?string $lieferPlz): self |
| 211 | { |
| 212 | $this->lieferPlz = $lieferPlz; |
| 213 | |
| 214 | return $this; |
| 215 | } |
| 216 | |
| 217 | public function getLieferStrasse(): ?string |
| 218 | { |
| 219 | return $this->lieferStrasse; |
| 220 | } |
| 221 | |
| 222 | public function setLieferStrasse(?string $lieferStrasse): self |
| 223 | { |
| 224 | $this->lieferStrasse = $lieferStrasse; |
| 225 | |
| 226 | return $this; |
| 227 | } |
| 228 | |
| 229 | public function getLieferTitel(): ?string |
| 230 | { |
| 231 | return $this->lieferTitel; |
| 232 | } |
| 233 | |
| 234 | public function setLieferTitel(?string $lieferTitel): self |
| 235 | { |
| 236 | $this->lieferTitel = $lieferTitel; |
| 237 | |
| 238 | return $this; |
| 239 | } |
| 240 | |
| 241 | public function getLieferVorname(): ?string |
| 242 | { |
| 243 | return $this->lieferVorname; |
| 244 | } |
| 245 | |
| 246 | public function setLieferVorname(?string $lieferVorname): self |
| 247 | { |
| 248 | $this->lieferVorname = $lieferVorname; |
| 249 | |
| 250 | return $this; |
| 251 | } |
| 252 | |
| 253 | public function getName(): ?string |
| 254 | { |
| 255 | return $this->name; |
| 256 | } |
| 257 | |
| 258 | public function setName(?string $name): self |
| 259 | { |
| 260 | $this->name = $name; |
| 261 | |
| 262 | return $this; |
| 263 | } |
| 264 | |
| 265 | public function getName2(): ?string |
| 266 | { |
| 267 | return $this->name2; |
| 268 | } |
| 269 | |
| 270 | public function setName2(?string $name2): self |
| 271 | { |
| 272 | $this->name2 = $name2; |
| 273 | |
| 274 | return $this; |
| 275 | } |
| 276 | |
| 277 | public function getName3(): ?string |
| 278 | { |
| 279 | return $this->name3; |
| 280 | } |
| 281 | |
| 282 | public function setName3(?string $name3): self |
| 283 | { |
| 284 | $this->name3 = $name3; |
| 285 | |
| 286 | return $this; |
| 287 | } |
| 288 | |
| 289 | public function getOrt(): ?string |
| 290 | { |
| 291 | return $this->ort; |
| 292 | } |
| 293 | |
| 294 | public function setOrt(?string $ort): self |
| 295 | { |
| 296 | $this->ort = $ort; |
| 297 | |
| 298 | return $this; |
| 299 | } |
| 300 | |
| 301 | public function getPlz(): ?string |
| 302 | { |
| 303 | return $this->plz; |
| 304 | } |
| 305 | |
| 306 | public function setPlz(?string $plz): self |
| 307 | { |
| 308 | $this->plz = $plz; |
| 309 | |
| 310 | return $this; |
| 311 | } |
| 312 | |
| 313 | public function getStrasse(): ?string |
| 314 | { |
| 315 | return $this->strasse; |
| 316 | } |
| 317 | |
| 318 | public function setStrasse(?string $strasse): self |
| 319 | { |
| 320 | $this->strasse = $strasse; |
| 321 | |
| 322 | return $this; |
| 323 | } |
| 324 | |
| 325 | public function getTitel(): ?string |
| 326 | { |
| 327 | return $this->titel; |
| 328 | } |
| 329 | |
| 330 | public function setTitel(?string $titel): self |
| 331 | { |
| 332 | $this->titel = $titel; |
| 333 | |
| 334 | return $this; |
| 335 | } |
| 336 | |
| 337 | public function getVorname(): ?string |
| 338 | { |
| 339 | return $this->vorname; |
| 340 | } |
| 341 | |
| 342 | public function setVorname(?string $vorname): self |
| 343 | { |
| 344 | $this->vorname = $vorname; |
| 345 | |
| 346 | return $this; |
| 347 | } |
| 348 | } |