Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 19 |
|
0.00% |
0 / 13 |
CRAP | |
0.00% |
0 / 1 |
| Ansprechzuord | |
0.00% |
0 / 19 |
|
0.00% |
0 / 13 |
210 | |
0.00% |
0 / 1 |
| getAngelegtam | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setAngelegtam | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |||
| getAnsprechlfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setAnsprechlfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getMaster | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setMaster | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getText | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setText | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getZiellfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setZiellfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getZieltyp | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setZieltyp | |
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 | |
| 10 | #[ORM\Entity] |
| 11 | #[ORM\Table(name: 'ANSPRECHZUORD')] |
| 12 | #[ORM\Index(columns: ['ansprechlfdnr'], name: 'ANSPRECHZUORD_ANSPRECHLFDNR_FK')] |
| 13 | #[ORM\UniqueConstraint(name: 'ANSPRECHZUORD_UK', columns: ['zieltyp', 'ziellfdnr', 'ansprechlfdnr'])] |
| 14 | class Ansprechzuord |
| 15 | { |
| 16 | #[ORM\Column(name: 'angelegtam', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 17 | private ?\DateTimeImmutable $angelegtam = null; |
| 18 | |
| 19 | #[ORM\ManyToOne(targetEntity: Ansprechpartner::class)] |
| 20 | #[ORM\JoinColumn(name: 'ansprechlfdnr', referencedColumnName: 'lfdnr')] |
| 21 | private ?Ansprechpartner $ansprechlfdnr = null; |
| 22 | |
| 23 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 24 | #[ORM\Id] |
| 25 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 26 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 27 | public private(set) ?int $lfdnr = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'master', type: Types::INTEGER, nullable: false)] |
| 30 | private int $master; |
| 31 | |
| 32 | #[ORM\Column(name: 'text', type: Types::STRING, length: 255, nullable: true)] |
| 33 | private ?string $text = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'ziellfdnr', type: Types::INTEGER, nullable: false)] |
| 36 | private int $ziellfdnr; |
| 37 | |
| 38 | #[ORM\Column(name: 'zieltyp', type: Types::INTEGER, nullable: false)] |
| 39 | private int $zieltyp; |
| 40 | |
| 41 | public function getAngelegtam(): ?\DateTimeImmutable |
| 42 | { |
| 43 | return $this->angelegtam; |
| 44 | } |
| 45 | |
| 46 | public function setAngelegtam(\DateTimeImmutable|\DateTime|null $angelegtam): static |
| 47 | { |
| 48 | $this->angelegtam = $angelegtam instanceof \DateTime ? \DateTimeImmutable::createFromInterface($angelegtam) : $angelegtam; |
| 49 | |
| 50 | return $this; |
| 51 | } |
| 52 | |
| 53 | public function getAnsprechlfdnr(): ?Ansprechpartner |
| 54 | { |
| 55 | return $this->ansprechlfdnr; |
| 56 | } |
| 57 | |
| 58 | public function setAnsprechlfdnr(?Ansprechpartner $ansprechlfdnr): self |
| 59 | { |
| 60 | $this->ansprechlfdnr = $ansprechlfdnr; |
| 61 | |
| 62 | return $this; |
| 63 | } |
| 64 | |
| 65 | public function getLfdnr(): ?int |
| 66 | { |
| 67 | return $this->lfdnr; |
| 68 | } |
| 69 | |
| 70 | public function getMaster(): int |
| 71 | { |
| 72 | return $this->master; |
| 73 | } |
| 74 | |
| 75 | public function setMaster(int $master): self |
| 76 | { |
| 77 | $this->master = $master; |
| 78 | |
| 79 | return $this; |
| 80 | } |
| 81 | |
| 82 | public function getText(): ?string |
| 83 | { |
| 84 | return $this->text; |
| 85 | } |
| 86 | |
| 87 | public function setText(?string $text): self |
| 88 | { |
| 89 | $this->text = $text; |
| 90 | |
| 91 | return $this; |
| 92 | } |
| 93 | |
| 94 | public function getZiellfdnr(): int |
| 95 | { |
| 96 | return $this->ziellfdnr; |
| 97 | } |
| 98 | |
| 99 | public function setZiellfdnr(int $ziellfdnr): self |
| 100 | { |
| 101 | $this->ziellfdnr = $ziellfdnr; |
| 102 | |
| 103 | return $this; |
| 104 | } |
| 105 | |
| 106 | public function getZieltyp(): int |
| 107 | { |
| 108 | return $this->zieltyp; |
| 109 | } |
| 110 | |
| 111 | public function setZieltyp(int $zieltyp): self |
| 112 | { |
| 113 | $this->zieltyp = $zieltyp; |
| 114 | |
| 115 | return $this; |
| 116 | } |
| 117 | } |