Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
91.67% |
11 / 12 |
|
85.71% |
6 / 7 |
CRAP | |
0.00% |
0 / 1 |
| Intranetmsggelesen | |
91.67% |
11 / 12 |
|
85.71% |
6 / 7 |
8.04 | |
0.00% |
0 / 1 |
| getBenutzerlfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBenutzerlfdnr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getGelesenam | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGelesenam | |
75.00% |
3 / 4 |
|
0.00% |
0 / 1 |
2.06 | |||
| getIntranetmsglfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setIntranetmsglfdnr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
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\Traits\BlameableEntity; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 11 | |
| 12 | #[ORM\Entity] |
| 13 | #[ORM\Table(name: 'INTRANETMSGGELESEN')] |
| 14 | #[ORM\Index(columns: ['benutzerlfdnr'], name: 'INETMSGGELESEN_BENUTZERLFDNR_FK')] |
| 15 | #[ORM\Index(columns: ['intranetmsglfdnr'], name: 'INETMSGGELESEN_INETMSGLFDNR_FK')] |
| 16 | class Intranetmsggelesen implements BlameableEntityInterface |
| 17 | { |
| 18 | use BlameableEntity; |
| 19 | |
| 20 | #[ORM\ManyToOne(targetEntity: Benutzer::class)] |
| 21 | #[ORM\JoinColumn(name: 'benutzerlfdnr', referencedColumnName: 'lfdnr')] |
| 22 | private ?Benutzer $benutzerlfdnr = null; |
| 23 | |
| 24 | #[ORM\Column(name: 'gelesenam', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 25 | private ?\DateTimeImmutable $gelesenam = null; |
| 26 | |
| 27 | #[ORM\ManyToOne(targetEntity: Intranetmsg::class)] |
| 28 | #[ORM\JoinColumn(name: 'intranetmsglfdnr', referencedColumnName: 'lfdnr')] |
| 29 | private ?Intranetmsg $intranetmsglfdnr = null; |
| 30 | |
| 31 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 32 | #[ORM\Id] |
| 33 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 34 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 35 | public private(set) ?int $lfdnr = null; |
| 36 | |
| 37 | public function getBenutzerlfdnr(): ?Benutzer |
| 38 | { |
| 39 | return $this->benutzerlfdnr; |
| 40 | } |
| 41 | |
| 42 | public function setBenutzerlfdnr(?Benutzer $benutzerlfdnr): self |
| 43 | { |
| 44 | $this->benutzerlfdnr = $benutzerlfdnr; |
| 45 | |
| 46 | return $this; |
| 47 | } |
| 48 | |
| 49 | public function getGelesenam(): ?\DateTimeImmutable |
| 50 | { |
| 51 | return $this->gelesenam; |
| 52 | } |
| 53 | |
| 54 | public function setGelesenam(\DateTimeImmutable|\DateTime|null $gelesenam): self |
| 55 | { |
| 56 | $this->gelesenam = $gelesenam instanceof \DateTime |
| 57 | ? \DateTimeImmutable::createFromMutable($gelesenam) |
| 58 | : $gelesenam; |
| 59 | |
| 60 | return $this; |
| 61 | } |
| 62 | |
| 63 | public function getIntranetmsglfdnr(): ?Intranetmsg |
| 64 | { |
| 65 | return $this->intranetmsglfdnr; |
| 66 | } |
| 67 | |
| 68 | public function setIntranetmsglfdnr(?Intranetmsg $intranetmsglfdnr): self |
| 69 | { |
| 70 | $this->intranetmsglfdnr = $intranetmsglfdnr; |
| 71 | |
| 72 | return $this; |
| 73 | } |
| 74 | |
| 75 | public function getLfdnr(): ?int |
| 76 | { |
| 77 | return $this->lfdnr; |
| 78 | } |
| 79 | } |