Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
CRAP | |
0.00% |
0 / 1 |
| Mailfreigabe | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
30 | |
0.00% |
0 / 1 |
| getBenutzerlfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBenutzerlfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getEmaillfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setEmaillfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
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: 'MAILFREIGABE')] |
| 12 | #[ORM\Index(columns: ['benutzerlfdnr'], name: 'MAILFREIGABE_BENUTZERLFDNR_FK')] |
| 13 | #[ORM\Index(columns: ['emaillfdnr'], name: 'MAILFREIGABE_EMAILLFDNR_FK')] |
| 14 | #[ORM\UniqueConstraint(name: 'MAILFREIGABE_UK', columns: ['benutzerlfdnr', 'emaillfdnr'])] |
| 15 | class Mailfreigabe |
| 16 | { |
| 17 | #[ORM\ManyToOne(targetEntity: Benutzer::class)] |
| 18 | #[ORM\JoinColumn(name: 'benutzerlfdnr', referencedColumnName: 'lfdnr')] |
| 19 | private ?Benutzer $benutzerlfdnr = null; |
| 20 | |
| 21 | #[ORM\ManyToOne(targetEntity: Email::class)] |
| 22 | #[ORM\JoinColumn(name: 'emaillfdnr', referencedColumnName: 'lfdnr')] |
| 23 | private ?Email $emaillfdnr = null; |
| 24 | |
| 25 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 26 | #[ORM\Id] |
| 27 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 28 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 29 | public private(set) ?int $lfdnr = null; |
| 30 | |
| 31 | public function getBenutzerlfdnr(): ?Benutzer |
| 32 | { |
| 33 | return $this->benutzerlfdnr; |
| 34 | } |
| 35 | |
| 36 | public function setBenutzerlfdnr(?Benutzer $benutzerlfdnr): self |
| 37 | { |
| 38 | $this->benutzerlfdnr = $benutzerlfdnr; |
| 39 | |
| 40 | return $this; |
| 41 | } |
| 42 | |
| 43 | public function getEmaillfdnr(): ?Email |
| 44 | { |
| 45 | return $this->emaillfdnr; |
| 46 | } |
| 47 | |
| 48 | public function setEmaillfdnr(?Email $emaillfdnr): self |
| 49 | { |
| 50 | $this->emaillfdnr = $emaillfdnr; |
| 51 | |
| 52 | return $this; |
| 53 | } |
| 54 | |
| 55 | public function getLfdnr(): ?int |
| 56 | { |
| 57 | return $this->lfdnr; |
| 58 | } |
| 59 | } |