Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
7 / 7
CRAP
100.00% covered (success)
100.00%
1 / 1
Mailkontenfreigabe
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
7 / 7
7
100.00% covered (success)
100.00%
1 / 1
 getBenutzerlfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBenutzerlfdnr
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getLfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMailkontenlfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMailkontenlfdnr
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getStandard
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setStandard
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Satag\AmicronEntityBundle\Entity;
6
7use Doctrine\DBAL\Types\Types;
8use Doctrine\ORM\Mapping as ORM;
9
10#[ORM\Entity]
11#[ORM\Table(name: 'MAILKONTENFREIGABE')]
12#[ORM\Index(columns: ['benutzerlfdnr'], name: 'MAILKONTENFREIGABE_BENUTZER_FK')]
13#[ORM\Index(columns: ['mailkontenlfdnr'], name: 'MAILKONTENFREIGABE_MAILKTN_FK')]
14#[ORM\UniqueConstraint(name: 'MAILKONTENFREIGABE_UK', columns: ['benutzerlfdnr', 'mailkontenlfdnr'])]
15class Mailkontenfreigabe
16{
17    #[ORM\ManyToOne(targetEntity: Benutzer::class)]
18    #[ORM\JoinColumn(name: 'benutzerlfdnr', referencedColumnName: 'lfdnr')]
19    private ?Benutzer $benutzerlfdnr = null;
20
21    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
22    #[ORM\Id]
23    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
24    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
25    public private(set) ?int $lfdnr = null;
26
27    #[ORM\ManyToOne(targetEntity: Mailkonten::class)]
28    #[ORM\JoinColumn(name: 'mailkontenlfdnr', referencedColumnName: 'lfdnr')]
29    private ?Mailkonten $mailkontenlfdnr = null;
30
31    #[ORM\Column(name: 'standard', type: Types::INTEGER, nullable: true)]
32    private ?int $standard = null;
33
34    public function getBenutzerlfdnr(): ?Benutzer
35    {
36        return $this->benutzerlfdnr;
37    }
38
39    public function setBenutzerlfdnr(?Benutzer $benutzerlfdnr): self
40    {
41        $this->benutzerlfdnr = $benutzerlfdnr;
42
43        return $this;
44    }
45
46    public function getLfdnr(): ?int
47    {
48        return $this->lfdnr;
49    }
50
51    public function getMailkontenlfdnr(): ?Mailkonten
52    {
53        return $this->mailkontenlfdnr;
54    }
55
56    public function setMailkontenlfdnr(?Mailkonten $mailkontenlfdnr): self
57    {
58        $this->mailkontenlfdnr = $mailkontenlfdnr;
59
60        return $this;
61    }
62
63    public function getStandard(): ?int
64    {
65        return $this->standard;
66    }
67
68    public function setStandard(?int $standard): self
69    {
70        $this->standard = $standard;
71
72        return $this;
73    }
74}