Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
96.97% covered (success)
96.97%
32 / 33
95.24% covered (success)
95.24%
20 / 21
CRAP
0.00% covered (danger)
0.00%
0 / 1
Auftragspositionrueckstand
96.97% covered (success)
96.97%
32 / 33
95.24% covered (success)
95.24%
20 / 21
22
0.00% covered (danger)
0.00%
0 / 1
 getAuftragsposition
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAuftragsposition
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getBemerkung
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBemerkung
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getBestellung
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBestellung
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getGeliefert
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setGeliefert
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
 getLieferjahr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLieferjahr
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getLiefertermin
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLiefertermin
75.00% covered (warning)
75.00%
3 / 4
0.00% covered (danger)
0.00%
0 / 1
2.06
 getLieferwoche
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLieferwoche
100.00% covered (success)
100.00%
2 / 2
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
 getRueckstand
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRueckstand
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
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;
11use Satag\AmicronEntityBundle\Traits\DecimalEntity;
12
13#[ORM\Entity]
14#[ORM\Table(name: 'ATRPOSRUECKSTAND')]
15#[ORM\Index(columns: ['bestellunglfdnr'], name: 'ATRPOSRUECKSTAND_BSTLFDNR_FK')]
16#[ORM\Index(columns: ['uatrposlfdnr'], name: 'ATRPOSRUECKSTAND_UATRPOSLFDN_FK')]
17class Auftragspositionrueckstand implements BlameableEntityInterface
18{
19    use BlameableEntity;
20    use DecimalEntity;
21
22    #[ORM\ManyToOne(targetEntity: Auftragsposition::class, cascade: ['persist'])]
23    #[ORM\JoinColumn(name: 'uatrposlfdnr', referencedColumnName: 'lfdnr')]
24    private ?Auftragsposition $auftragsposition = null;
25
26    #[ORM\Column(name: 'bemerkung', type: Types::TEXT, nullable: true)]
27    private ?string $bemerkung = null;
28
29    #[ORM\ManyToOne(targetEntity: Auftrag::class)]
30    #[ORM\JoinColumn(name: 'bestellunglfdnr', referencedColumnName: 'lfdnr')]
31    private ?Auftrag $bestellung = null;
32
33    #[ORM\Column(name: 'geliefert', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)]
34    private ?string $geliefert = null;
35
36    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
37    #[ORM\Id]
38    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
39    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
40    public private(set) ?int $lfdnr = null;
41
42    #[ORM\Column(name: 'lieferjahr', type: Types::INTEGER, nullable: true)]
43    private ?int $lieferjahr = null;
44
45    #[ORM\Column(name: 'liefertermin', type: Types::DATETIME_IMMUTABLE, nullable: true)]
46    private ?\DateTimeImmutable $liefertermin = null;
47
48    #[ORM\Column(name: 'lieferwoche', type: Types::INTEGER, nullable: true)]
49    private ?int $lieferwoche = null;
50
51    #[ORM\Column(name: 'prioritaet', type: Types::INTEGER, nullable: true)]
52    private ?int $prioritaet = null;
53
54    #[ORM\Column(name: 'rueckstand', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)]
55    private ?string $rueckstand = null;
56
57    #[ORM\Column(name: 'text', type: Types::TEXT, nullable: true)]
58    private ?string $text = null;
59
60    public function getAuftragsposition(): ?Auftragsposition
61    {
62        return $this->auftragsposition;
63    }
64
65    public function setAuftragsposition(?Auftragsposition $auftragsposition): self
66    {
67        $this->auftragsposition = $auftragsposition;
68
69        return $this;
70    }
71
72    public function getBemerkung(): ?string
73    {
74        return $this->bemerkung;
75    }
76
77    public function setBemerkung(?string $bemerkung): self
78    {
79        $this->bemerkung = $bemerkung;
80
81        return $this;
82    }
83
84    public function getBestellung(): ?Auftrag
85    {
86        return $this->bestellung;
87    }
88
89    public function setBestellung(?Auftrag $bestellung): self
90    {
91        $this->bestellung = $bestellung;
92
93        return $this;
94    }
95
96    public function getGeliefert(): ?string
97    {
98        return $this->geliefert;
99    }
100
101    public function setGeliefert(?string $geliefert): self
102    {
103        $this->geliefert = $geliefert;
104
105        return $this;
106    }
107
108    public function getLfdnr(): ?int
109    {
110        return $this->lfdnr;
111    }
112
113    public function getLieferjahr(): ?int
114    {
115        return $this->lieferjahr;
116    }
117
118    public function setLieferjahr(?int $lieferjahr): self
119    {
120        $this->lieferjahr = $lieferjahr;
121
122        return $this;
123    }
124
125    public function getLiefertermin(): ?\DateTimeImmutable
126    {
127        return $this->liefertermin;
128    }
129
130    public function setLiefertermin(\DateTimeImmutable|\DateTime|null $liefertermin): self
131    {
132        $this->liefertermin = $liefertermin instanceof \DateTime
133            ? \DateTimeImmutable::createFromMutable($liefertermin)
134            : $liefertermin;
135
136        return $this;
137    }
138
139    public function getLieferwoche(): ?int
140    {
141        return $this->lieferwoche;
142    }
143
144    public function setLieferwoche(?int $lieferwoche): self
145    {
146        $this->lieferwoche = $lieferwoche;
147
148        return $this;
149    }
150
151    public function getPrioritaet(): ?int
152    {
153        return $this->prioritaet;
154    }
155
156    public function setPrioritaet(?int $prioritaet): self
157    {
158        $this->prioritaet = $prioritaet;
159
160        return $this;
161    }
162
163    public function getRueckstand(): ?string
164    {
165        return $this->rueckstand;
166    }
167
168    public function setRueckstand(?string $rueckstand): self
169    {
170        $this->rueckstand = $rueckstand;
171
172        return $this;
173    }
174
175    public function getText(): ?string
176    {
177        return $this->text;
178    }
179
180    public function setText(?string $text): self
181    {
182        $this->text = $text;
183
184        return $this;
185    }
186}