Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
28 / 28
100.00% covered (success)
100.00%
19 / 19
CRAP
100.00% covered (success)
100.00%
1 / 1
Mailregeln
100.00% covered (success)
100.00%
28 / 28
100.00% covered (success)
100.00%
19 / 19
20
100.00% covered (success)
100.00%
1 / 1
 getAktion1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAktion1
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getAktion2
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAktion2
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getAussprung
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAussprung
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 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
 getBezeichnung
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBezeichnung
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getGeaendertam
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setGeaendertam
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
2
 getGeaendertvon
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setGeaendertvon
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getHeaderflag
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setHeaderflag
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
 getPos
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setPos
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: 'MAILREGELN')]
12#[ORM\Index(columns: ['benutzerlfdnr', 'aktion1', 'pos'], name: 'MAILREGELN_BAP_IDX')]
13#[ORM\Index(columns: ['benutzerlfdnr'], name: 'MAILREGELN_BENUTZERLFDNR_FK')]
14class Mailregeln
15{
16    #[ORM\Column(name: 'aktion1', type: Types::INTEGER, nullable: true)]
17    private ?int $aktion1 = null;
18
19    #[ORM\Column(name: 'aktion2', type: Types::TEXT, nullable: true)]
20    private ?string $aktion2 = null;
21
22    #[ORM\Column(name: 'aussprung', type: Types::STRING, length: 1, nullable: true)]
23    private ?string $aussprung = null;
24
25    #[ORM\ManyToOne(targetEntity: Benutzer::class)]
26    #[ORM\JoinColumn(name: 'benutzerlfdnr', referencedColumnName: 'lfdnr')]
27    private ?Benutzer $benutzerlfdnr = null;
28
29    #[ORM\Column(name: 'bezeichnung', type: Types::STRING, length: 80, nullable: false)]
30    private string $bezeichnung;
31
32    #[ORM\Column(name: 'geaendertam', type: Types::DATETIME_IMMUTABLE, nullable: true)]
33    private ?\DateTimeImmutable $geaendertam = null;
34
35    #[ORM\Column(name: 'geaendertvon', type: Types::STRING, length: 3, nullable: true)]
36    private ?string $geaendertvon = null;
37
38    #[ORM\Column(name: 'headerflag', type: Types::STRING, length: 1, nullable: true)]
39    private ?string $headerflag = null;
40
41    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
42    #[ORM\Id]
43    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
44    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
45    public private(set) ?int $lfdnr = null;
46
47    #[ORM\Column(name: 'pos', type: Types::INTEGER, nullable: true)]
48    private ?int $pos = null;
49
50    public function getAktion1(): ?int
51    {
52        return $this->aktion1;
53    }
54
55    public function setAktion1(?int $aktion1): self
56    {
57        $this->aktion1 = $aktion1;
58
59        return $this;
60    }
61
62    public function getAktion2(): ?string
63    {
64        return $this->aktion2;
65    }
66
67    public function setAktion2(?string $aktion2): self
68    {
69        $this->aktion2 = $aktion2;
70
71        return $this;
72    }
73
74    public function getAussprung(): ?string
75    {
76        return $this->aussprung;
77    }
78
79    public function setAussprung(?string $aussprung): self
80    {
81        $this->aussprung = $aussprung;
82
83        return $this;
84    }
85
86    public function getBenutzerlfdnr(): ?Benutzer
87    {
88        return $this->benutzerlfdnr;
89    }
90
91    public function setBenutzerlfdnr(?Benutzer $benutzerlfdnr): self
92    {
93        $this->benutzerlfdnr = $benutzerlfdnr;
94
95        return $this;
96    }
97
98    public function getBezeichnung(): string
99    {
100        return $this->bezeichnung;
101    }
102
103    public function setBezeichnung(string $bezeichnung): self
104    {
105        $this->bezeichnung = $bezeichnung;
106
107        return $this;
108    }
109
110    public function getGeaendertam(): ?\DateTimeImmutable
111    {
112        return $this->geaendertam;
113    }
114
115    public function setGeaendertam(\DateTimeImmutable|\DateTime|null $geaendertam): static
116    {
117        $this->geaendertam = $geaendertam instanceof \DateTime ? \DateTimeImmutable::createFromMutable($geaendertam) : $geaendertam;
118
119        return $this;
120    }
121
122    public function getGeaendertvon(): ?string
123    {
124        return $this->geaendertvon;
125    }
126
127    public function setGeaendertvon(?string $geaendertvon): static
128    {
129        $this->geaendertvon = $geaendertvon;
130
131        return $this;
132    }
133
134    public function getHeaderflag(): ?string
135    {
136        return $this->headerflag;
137    }
138
139    public function setHeaderflag(?string $headerflag): self
140    {
141        $this->headerflag = $headerflag;
142
143        return $this;
144    }
145
146    public function getLfdnr(): ?int
147    {
148        return $this->lfdnr;
149    }
150
151    public function getPos(): ?int
152    {
153        return $this->pos;
154    }
155
156    public function setPos(?int $pos): self
157    {
158        $this->pos = $pos;
159
160        return $this;
161    }
162}