Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 90 |
|
0.00% |
0 / 55 |
CRAP | |
0.00% |
0 / 1 |
| Ansprechpartner | |
0.00% |
0 / 90 |
|
0.00% |
0 / 55 |
3540 | |
0.00% |
0 / 1 |
| getAbteilung | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setAbteilung | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getAdresse | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setAdresse | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getAnrede | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setAnrede | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getArt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setArt | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getBemerkung | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBemerkung | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getBild | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBild | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getBriefanrede | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBriefanrede | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getEmail | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setEmail | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getFax | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setFax | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getFreifeld1 | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setFreifeld1 | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getFreifeld2 | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setFreifeld2 | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getGeburtstag | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setGeburtstag | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |||
| getLetzterkontakt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setLetzterkontakt | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getMarkiert | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setMarkiert | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setName | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getPos | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setPos | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getSerienbriefletzter | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSerienbriefletzter | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |||
| isSerienbriefsperre | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSerienbriefsperre | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getSerienemailletzte | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSerienemailletzte | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |||
| isSerienemailsperre | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSerienemailsperre | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getSkypeusername | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSkypeusername | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getTelefon1 | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setTelefon1 | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getTelefon2 | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setTelefon2 | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getTelefonmatchcode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setTelefonmatchcode | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getTitel | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setTitel | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getVorname | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setVorname | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getXing | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setXing | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 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\Traits\BlameableEntity; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 11 | use Satag\AmicronEntityBundle\Traits\VorlegbareEntity; |
| 12 | |
| 13 | #[ORM\Entity] |
| 14 | #[ORM\Table(name: 'ANSPRECH')] |
| 15 | #[ORM\Index(columns: ['email'], name: 'ANSPRECH_EMAIL_IDX')] |
| 16 | #[ORM\Index(columns: ['vorlageam'], name: 'ANSPRECH_VORLAGEAM_DIDX')] |
| 17 | #[ORM\Index(columns: ['adressenlfdnr'], name: 'ANSPRECH_ADRESSENLFDNR_FK')] |
| 18 | class Ansprechpartner extends AbstractAmicronEntity implements BlameableEntityInterface |
| 19 | { |
| 20 | use BlameableEntity; |
| 21 | use VorlegbareEntity; |
| 22 | |
| 23 | #[ORM\Column(name: 'abteilung', type: Types::STRING, length: 60, nullable: true)] |
| 24 | private ?string $abteilung = null; |
| 25 | |
| 26 | #[ORM\ManyToOne(targetEntity: Adresse::class, cascade: ['persist'])] |
| 27 | #[ORM\JoinColumn(name: 'adressenlfdnr', referencedColumnName: 'lfdnr')] |
| 28 | private ?Adresse $adresse = null; |
| 29 | |
| 30 | #[ORM\Column(name: 'anrede', type: Types::STRING, length: 25, nullable: true)] |
| 31 | private ?string $anrede = null; |
| 32 | |
| 33 | #[ORM\Column(name: 'art', type: Types::STRING, length: 1, nullable: true)] |
| 34 | private ?string $art = null; |
| 35 | |
| 36 | #[ORM\Column(name: 'bemerkung', type: Types::TEXT, nullable: true)] |
| 37 | private ?string $bemerkung = null; |
| 38 | |
| 39 | #[ORM\Column(name: 'bild', type: 'blob_base64', nullable: true)] |
| 40 | private ?string $bild = null; |
| 41 | |
| 42 | #[ORM\Column(name: 'briefanrede', type: Types::STRING, length: 45, nullable: true)] |
| 43 | private ?string $briefanrede = null; |
| 44 | |
| 45 | #[ORM\Column(name: 'email', type: Types::STRING, length: 80, nullable: true)] |
| 46 | private ?string $email = null; |
| 47 | |
| 48 | #[ORM\Column(name: 'fax', type: Types::STRING, length: 30, nullable: true)] |
| 49 | private ?string $fax = null; |
| 50 | |
| 51 | #[ORM\Column(name: 'freifeld1', type: Types::STRING, length: 255, nullable: true)] |
| 52 | private ?string $freifeld1 = null; |
| 53 | |
| 54 | #[ORM\Column(name: 'freifeld2', type: Types::STRING, length: 255, nullable: true)] |
| 55 | private ?string $freifeld2 = null; |
| 56 | |
| 57 | #[ORM\Column(name: 'geburtstag', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 58 | private ?\DateTimeImmutable $geburtstag = null; |
| 59 | |
| 60 | #[ORM\Column(name: 'letzterkontakt', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 61 | private ?\DateTimeImmutable $letzterkontakt = null; |
| 62 | |
| 63 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 64 | #[ORM\Id] |
| 65 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 66 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 67 | public private(set) ?int $lfdnr = null; |
| 68 | |
| 69 | #[ORM\Column(name: 'mark', type: Types::BOOLEAN, length: 1, nullable: true)] |
| 70 | private ?bool $markiert = null; |
| 71 | |
| 72 | #[ORM\Column(name: 'name', type: Types::STRING, length: 40, nullable: true)] |
| 73 | private ?string $name = null; |
| 74 | |
| 75 | #[ORM\Column(name: 'pos', type: Types::STRING, length: 60, nullable: true)] |
| 76 | private ?string $pos = null; |
| 77 | |
| 78 | #[ORM\Column(name: 'serienbriefletzter', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 79 | private ?\DateTimeImmutable $serienbriefletzter = null; |
| 80 | |
| 81 | #[ORM\Column(name: 'serienbriefsperre', type: Types::BOOLEAN, length: 1, nullable: true)] |
| 82 | private ?bool $serienbriefsperre = null; |
| 83 | |
| 84 | #[ORM\Column(name: 'serienemailletzte', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 85 | private ?\DateTimeImmutable $serienemailletzte = null; |
| 86 | |
| 87 | #[ORM\Column(name: 'serienemailsperre', type: Types::BOOLEAN, length: 1, nullable: true)] |
| 88 | private ?bool $serienemailsperre = null; |
| 89 | |
| 90 | #[ORM\Column(name: 'skypeusername', type: Types::STRING, length: 64, nullable: true)] |
| 91 | private ?string $skypeusername = null; |
| 92 | |
| 93 | #[ORM\Column(name: 'telefon1', type: Types::STRING, length: 30, nullable: true)] |
| 94 | private ?string $telefon1 = null; |
| 95 | |
| 96 | #[ORM\Column(name: 'telefon2', type: Types::STRING, length: 30, nullable: true)] |
| 97 | private ?string $telefon2 = null; |
| 98 | |
| 99 | #[ORM\Column(name: 'telefonmatchcode', type: Types::STRING, length: 64, nullable: true)] |
| 100 | private ?string $telefonmatchcode = null; |
| 101 | |
| 102 | #[ORM\Column(name: 'titel', type: Types::STRING, length: 20, nullable: true)] |
| 103 | private ?string $titel = null; |
| 104 | |
| 105 | #[ORM\Column(name: 'vorname', type: Types::STRING, length: 30, nullable: true)] |
| 106 | private ?string $vorname = null; |
| 107 | |
| 108 | #[ORM\Column(name: 'xing', type: Types::STRING, length: 60, nullable: true)] |
| 109 | private ?string $xing = null; |
| 110 | |
| 111 | public function getAbteilung(): ?string |
| 112 | { |
| 113 | return $this->abteilung; |
| 114 | } |
| 115 | |
| 116 | public function setAbteilung(?string $abteilung): self |
| 117 | { |
| 118 | $this->abteilung = $abteilung; |
| 119 | |
| 120 | return $this; |
| 121 | } |
| 122 | |
| 123 | public function getAdresse(): ?Adresse |
| 124 | { |
| 125 | return $this->adresse; |
| 126 | } |
| 127 | |
| 128 | public function setAdresse(?Adresse $adresse): self |
| 129 | { |
| 130 | $this->adresse = $adresse; |
| 131 | |
| 132 | return $this; |
| 133 | } |
| 134 | |
| 135 | public function getAnrede(): ?string |
| 136 | { |
| 137 | return $this->anrede; |
| 138 | } |
| 139 | |
| 140 | public function setAnrede(?string $anrede): self |
| 141 | { |
| 142 | $this->anrede = $anrede; |
| 143 | |
| 144 | return $this; |
| 145 | } |
| 146 | |
| 147 | public function getArt(): ?string |
| 148 | { |
| 149 | return $this->art; |
| 150 | } |
| 151 | |
| 152 | public function setArt(?string $art): self |
| 153 | { |
| 154 | $this->art = $art; |
| 155 | |
| 156 | return $this; |
| 157 | } |
| 158 | |
| 159 | public function getBemerkung(): ?string |
| 160 | { |
| 161 | return $this->bemerkung; |
| 162 | } |
| 163 | |
| 164 | public function setBemerkung(?string $bemerkung): self |
| 165 | { |
| 166 | $this->bemerkung = $bemerkung; |
| 167 | |
| 168 | return $this; |
| 169 | } |
| 170 | |
| 171 | public function getBild(): ?string |
| 172 | { |
| 173 | return $this->bild; |
| 174 | } |
| 175 | |
| 176 | public function setBild(?string $bild): self |
| 177 | { |
| 178 | $this->bild = $bild; |
| 179 | |
| 180 | return $this; |
| 181 | } |
| 182 | |
| 183 | public function getBriefanrede(): ?string |
| 184 | { |
| 185 | return $this->briefanrede; |
| 186 | } |
| 187 | |
| 188 | public function setBriefanrede(?string $briefanrede): self |
| 189 | { |
| 190 | $this->briefanrede = $briefanrede; |
| 191 | |
| 192 | return $this; |
| 193 | } |
| 194 | |
| 195 | public function getEmail(): ?string |
| 196 | { |
| 197 | return $this->email; |
| 198 | } |
| 199 | |
| 200 | public function setEmail(?string $email): self |
| 201 | { |
| 202 | $this->email = $email; |
| 203 | |
| 204 | return $this; |
| 205 | } |
| 206 | |
| 207 | public function getFax(): ?string |
| 208 | { |
| 209 | return $this->fax; |
| 210 | } |
| 211 | |
| 212 | public function setFax(?string $fax): self |
| 213 | { |
| 214 | $this->fax = $fax; |
| 215 | |
| 216 | return $this; |
| 217 | } |
| 218 | |
| 219 | public function getFreifeld1(): ?string |
| 220 | { |
| 221 | return $this->freifeld1; |
| 222 | } |
| 223 | |
| 224 | public function setFreifeld1(?string $freifeld1): self |
| 225 | { |
| 226 | $this->freifeld1 = $freifeld1; |
| 227 | |
| 228 | return $this; |
| 229 | } |
| 230 | |
| 231 | public function getFreifeld2(): ?string |
| 232 | { |
| 233 | return $this->freifeld2; |
| 234 | } |
| 235 | |
| 236 | public function setFreifeld2(?string $freifeld2): self |
| 237 | { |
| 238 | $this->freifeld2 = $freifeld2; |
| 239 | |
| 240 | return $this; |
| 241 | } |
| 242 | |
| 243 | public function getGeburtstag(): ?\DateTimeImmutable |
| 244 | { |
| 245 | return $this->geburtstag; |
| 246 | } |
| 247 | |
| 248 | public function setGeburtstag(\DateTimeImmutable|\DateTime|null $geburtstag): self |
| 249 | { |
| 250 | $this->geburtstag = $geburtstag instanceof \DateTime |
| 251 | ? \DateTimeImmutable::createFromMutable($geburtstag) |
| 252 | : $geburtstag; |
| 253 | |
| 254 | return $this; |
| 255 | } |
| 256 | |
| 257 | public function getLetzterkontakt(): ?\DateTimeImmutable |
| 258 | { |
| 259 | return $this->letzterkontakt; |
| 260 | } |
| 261 | |
| 262 | public function setLetzterkontakt(\DateTimeImmutable|\DateTime|null $letzterkontakt): self |
| 263 | { |
| 264 | $this->letzterkontakt = $letzterkontakt instanceof \DateTime |
| 265 | ? \DateTimeImmutable::createFromMutable($letzterkontakt) |
| 266 | : $letzterkontakt; |
| 267 | |
| 268 | return $this; |
| 269 | } |
| 270 | |
| 271 | public function getLfdnr(): ?int |
| 272 | { |
| 273 | return $this->lfdnr; |
| 274 | } |
| 275 | |
| 276 | public function getMarkiert(): ?bool |
| 277 | { |
| 278 | return $this->markiert; |
| 279 | } |
| 280 | |
| 281 | public function setMarkiert(bool $markiert): self |
| 282 | { |
| 283 | $this->markiert = $markiert; |
| 284 | |
| 285 | return $this; |
| 286 | } |
| 287 | |
| 288 | public function getName(): ?string |
| 289 | { |
| 290 | return $this->name; |
| 291 | } |
| 292 | |
| 293 | public function setName(?string $name): self |
| 294 | { |
| 295 | $this->name = $name; |
| 296 | |
| 297 | return $this; |
| 298 | } |
| 299 | |
| 300 | public function getPos(): ?string |
| 301 | { |
| 302 | return $this->pos; |
| 303 | } |
| 304 | |
| 305 | public function setPos(?string $pos): self |
| 306 | { |
| 307 | $this->pos = $pos; |
| 308 | |
| 309 | return $this; |
| 310 | } |
| 311 | |
| 312 | public function getSerienbriefletzter(): ?\DateTimeImmutable |
| 313 | { |
| 314 | return $this->serienbriefletzter; |
| 315 | } |
| 316 | |
| 317 | public function setSerienbriefletzter(\DateTimeImmutable|\DateTime|null $serienbriefletzter): self |
| 318 | { |
| 319 | $this->serienbriefletzter = $serienbriefletzter instanceof \DateTime |
| 320 | ? \DateTimeImmutable::createFromMutable($serienbriefletzter) |
| 321 | : $serienbriefletzter; |
| 322 | |
| 323 | return $this; |
| 324 | } |
| 325 | |
| 326 | public function isSerienbriefsperre(): ?bool |
| 327 | { |
| 328 | return $this->serienbriefsperre; |
| 329 | } |
| 330 | |
| 331 | public function setSerienbriefsperre(bool $serienbriefsperre): self |
| 332 | { |
| 333 | $this->serienbriefsperre = $serienbriefsperre; |
| 334 | |
| 335 | return $this; |
| 336 | } |
| 337 | |
| 338 | public function getSerienemailletzte(): ?\DateTimeImmutable |
| 339 | { |
| 340 | return $this->serienemailletzte; |
| 341 | } |
| 342 | |
| 343 | public function setSerienemailletzte(\DateTimeImmutable|\DateTime|null $serienemailletzte): self |
| 344 | { |
| 345 | $this->serienemailletzte = $serienemailletzte instanceof \DateTime |
| 346 | ? \DateTimeImmutable::createFromMutable($serienemailletzte) |
| 347 | : $serienemailletzte; |
| 348 | |
| 349 | return $this; |
| 350 | } |
| 351 | |
| 352 | public function isSerienemailsperre(): bool |
| 353 | { |
| 354 | return (bool) $this->serienemailsperre; |
| 355 | } |
| 356 | |
| 357 | public function setSerienemailsperre(?bool $serienemailsperre): self |
| 358 | { |
| 359 | $this->serienemailsperre = $serienemailsperre; |
| 360 | |
| 361 | return $this; |
| 362 | } |
| 363 | |
| 364 | public function getSkypeusername(): ?string |
| 365 | { |
| 366 | return $this->skypeusername; |
| 367 | } |
| 368 | |
| 369 | public function setSkypeusername(?string $skypeusername): self |
| 370 | { |
| 371 | $this->skypeusername = $skypeusername; |
| 372 | |
| 373 | return $this; |
| 374 | } |
| 375 | |
| 376 | public function getTelefon1(): ?string |
| 377 | { |
| 378 | return $this->telefon1; |
| 379 | } |
| 380 | |
| 381 | public function setTelefon1(?string $telefon1): self |
| 382 | { |
| 383 | $this->telefon1 = $telefon1; |
| 384 | |
| 385 | return $this; |
| 386 | } |
| 387 | |
| 388 | public function getTelefon2(): ?string |
| 389 | { |
| 390 | return $this->telefon2; |
| 391 | } |
| 392 | |
| 393 | public function setTelefon2(?string $telefon2): self |
| 394 | { |
| 395 | $this->telefon2 = $telefon2; |
| 396 | |
| 397 | return $this; |
| 398 | } |
| 399 | |
| 400 | public function getTelefonmatchcode(): ?string |
| 401 | { |
| 402 | return $this->telefonmatchcode; |
| 403 | } |
| 404 | |
| 405 | public function setTelefonmatchcode(?string $telefonmatchcode): self |
| 406 | { |
| 407 | $this->telefonmatchcode = $telefonmatchcode; |
| 408 | |
| 409 | return $this; |
| 410 | } |
| 411 | |
| 412 | public function getTitel(): ?string |
| 413 | { |
| 414 | return $this->titel; |
| 415 | } |
| 416 | |
| 417 | public function setTitel(?string $titel): self |
| 418 | { |
| 419 | $this->titel = $titel; |
| 420 | |
| 421 | return $this; |
| 422 | } |
| 423 | |
| 424 | public function getVorname(): ?string |
| 425 | { |
| 426 | return $this->vorname; |
| 427 | } |
| 428 | |
| 429 | public function setVorname(?string $vorname): self |
| 430 | { |
| 431 | $this->vorname = $vorname; |
| 432 | |
| 433 | return $this; |
| 434 | } |
| 435 | |
| 436 | public function getXing(): ?string |
| 437 | { |
| 438 | return $this->xing; |
| 439 | } |
| 440 | |
| 441 | public function setXing(?string $xing): self |
| 442 | { |
| 443 | $this->xing = $xing; |
| 444 | |
| 445 | return $this; |
| 446 | } |
| 447 | } |