Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
96.55% covered (success)
96.55%
28 / 29
95.00% covered (success)
95.00%
19 / 20
CRAP
0.00% covered (danger)
0.00%
0 / 1
Intranetmsg
96.55% covered (success)
96.55%
28 / 29
95.00% covered (success)
95.00%
19 / 20
20
0.00% covered (danger)
0.00%
0 / 1
 __toString
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getAblauftage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAblauftage
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getArchiv
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setArchiv
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
 getBetreff
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBetreff
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getKommentare
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setKommentare
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
 getPrioritaet
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setPrioritaet
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getText
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setText
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getUrsprungmsg
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setUrsprungmsg
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getUrsprungrootmsg
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setUrsprungrootmsg
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;
9use Satag\AmicronEntityBundle\Traits\BlameableEntity;
10use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface;
11
12#[ORM\Entity]
13#[ORM\Table(name: 'INTRANETMSG')]
14#[ORM\Index(columns: ['benutzerlfdnr'], name: 'INTRANETMSG_BENUTZERLFDNR_FK')]
15#[ORM\Index(columns: ['ursprungmsg'], name: 'INTRANETMSG_URSPRUNGMSG_FK')]
16#[ORM\Index(columns: ['ursprungrootmsg'], name: 'INTRANETMSG_URSPRUNGROOTMSG_FK')]
17class Intranetmsg implements BlameableEntityInterface, \Stringable
18{
19    use BlameableEntity;
20
21    #[ORM\Column(name: 'ablauftage', type: Types::INTEGER, nullable: true)]
22    private ?int $ablauftage = null;
23
24    #[ORM\Column(name: 'archiv', type: Types::INTEGER, nullable: true)]
25    private ?int $archiv = null;
26
27    #[ORM\ManyToOne(targetEntity: Benutzer::class)]
28    #[ORM\JoinColumn(name: 'benutzerlfdnr', referencedColumnName: 'lfdnr')]
29    private ?Benutzer $benutzerlfdnr = null;
30
31    #[ORM\Column(name: 'betreff', type: Types::STRING, length: 120, nullable: true)]
32    private ?string $betreff = null;
33
34    #[ORM\Column(name: 'kommentare', type: Types::TEXT, nullable: true)]
35    private ?string $kommentare = null;
36
37    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
38    #[ORM\Id]
39    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
40    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
41    public private(set) ?int $lfdnr = null;
42
43    #[ORM\Column(name: 'prioritaet', type: Types::INTEGER, nullable: true)]
44    private ?int $prioritaet = null;
45
46    #[ORM\Column(name: 'text', type: Types::TEXT, nullable: true)]
47    private ?string $text = null;
48
49    #[ORM\ManyToOne(targetEntity: Intranetmsg::class)]
50    #[ORM\JoinColumn(name: 'ursprungmsg', referencedColumnName: 'lfdnr')]
51    private ?Intranetmsg $ursprungmsg = null;
52
53    #[ORM\ManyToOne(targetEntity: Intranetmsg::class)]
54    #[ORM\JoinColumn(name: 'ursprungrootmsg', referencedColumnName: 'lfdnr')]
55    private ?Intranetmsg $ursprungrootmsg = null;
56
57    public function __toString(): string
58    {
59        return \sprintf('%s (%s)', $this->betreff, $this->lfdnr);
60    }
61
62    public function getAblauftage(): ?int
63    {
64        return $this->ablauftage;
65    }
66
67    public function setAblauftage(?int $ablauftage): self
68    {
69        $this->ablauftage = $ablauftage;
70
71        return $this;
72    }
73
74    public function getArchiv(): ?int
75    {
76        return $this->archiv;
77    }
78
79    public function setArchiv(?int $archiv): self
80    {
81        $this->archiv = $archiv;
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 getBetreff(): ?string
99    {
100        return $this->betreff;
101    }
102
103    public function setBetreff(?string $betreff): self
104    {
105        $this->betreff = $betreff;
106
107        return $this;
108    }
109
110    public function getKommentare(): ?string
111    {
112        return $this->kommentare;
113    }
114
115    public function setKommentare(?string $kommentare): self
116    {
117        $this->kommentare = $kommentare;
118
119        return $this;
120    }
121
122    public function getLfdnr(): ?int
123    {
124        return $this->lfdnr;
125    }
126
127    public function getPrioritaet(): ?int
128    {
129        return $this->prioritaet;
130    }
131
132    public function setPrioritaet(?int $prioritaet): self
133    {
134        $this->prioritaet = $prioritaet;
135
136        return $this;
137    }
138
139    public function getText(): ?string
140    {
141        return $this->text;
142    }
143
144    public function setText(?string $text): self
145    {
146        $this->text = $text;
147
148        return $this;
149    }
150
151    public function getUrsprungmsg(): ?self
152    {
153        return $this->ursprungmsg;
154    }
155
156    public function setUrsprungmsg(?self $ursprungmsg): self
157    {
158        $this->ursprungmsg = $ursprungmsg;
159
160        return $this;
161    }
162
163    public function getUrsprungrootmsg(): ?self
164    {
165        return $this->ursprungrootmsg;
166    }
167
168    public function setUrsprungrootmsg(?self $ursprungrootmsg): self
169    {
170        $this->ursprungrootmsg = $ursprungrootmsg;
171
172        return $this;
173    }
174}