Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 34
0.00% covered (danger)
0.00%
0 / 19
CRAP
0.00% covered (danger)
0.00%
0 / 1
Inventur
0.00% covered (danger)
0.00%
0 / 34
0.00% covered (danger)
0.00%
0 / 19
506
0.00% covered (danger)
0.00%
0 / 1
 getArtikellfdnr
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setArtikellfdnr
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getBestandinventur
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setBestandinventur
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getBestandsoll
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setBestandsoll
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getErfasstam
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setErfasstam
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
 getErfasstvon
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setErfasstvon
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getGebucht
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setGebucht
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getLagerlfdnr
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setLagerlfdnr
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getLfdnr
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getStichtag
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setStichtag
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
 getZaehldatum
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setZaehldatum
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
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: 'INVENTUR')]
14#[ORM\Index(columns: ['artikellfdnr'], name: 'INVENTUR_ARTIKELLFDNR_FK')]
15#[ORM\Index(columns: ['lagerlfdnr'], name: 'INVENTUR_LAGERLFDNR_FK')]
16#[ORM\UniqueConstraint(name: 'INVENTUR_UK', columns: ['stichtag', 'artikellfdnr', 'lagerlfdnr'])]
17class Inventur implements BlameableEntityInterface
18{
19    use BlameableEntity;
20
21    #[ORM\ManyToOne(targetEntity: Artikel::class)]
22    #[ORM\JoinColumn(name: 'artikellfdnr', referencedColumnName: 'lfdnr')]
23    private ?Artikel $artikellfdnr = null;
24
25    #[ORM\Column(name: 'bestandinventur', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)]
26    private ?string $bestandinventur = null;
27
28    #[ORM\Column(name: 'bestandsoll', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)]
29    private ?string $bestandsoll = null;
30
31    #[ORM\Column(name: 'erfasstam', type: Types::DATETIME_IMMUTABLE, nullable: true)]
32    private ?\DateTimeImmutable $erfasstam = null;
33
34    #[ORM\Column(name: 'erfasstvon', type: Types::STRING, length: 3, nullable: true)]
35    private ?string $erfasstvon = null;
36
37    #[ORM\Column(name: 'gebucht', type: Types::STRING, length: 1, nullable: true)]
38    private ?string $gebucht = null;
39
40    #[ORM\ManyToOne(targetEntity: Lager::class)]
41    #[ORM\JoinColumn(name: 'lagerlfdnr', referencedColumnName: 'lfdnr')]
42    private ?Lager $lagerlfdnr = null;
43
44    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
45    #[ORM\Id]
46    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
47    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
48    public private(set) ?int $lfdnr = null;
49
50    #[ORM\Column(name: 'stichtag', type: Types::DATETIME_IMMUTABLE, nullable: false)]
51    private \DateTimeImmutable $stichtag;
52
53    #[ORM\Column(name: 'zaehldatum', type: Types::DATETIME_IMMUTABLE, nullable: true)]
54    private ?\DateTimeImmutable $zaehldatum = null;
55
56    public function getArtikellfdnr(): ?Artikel
57    {
58        return $this->artikellfdnr;
59    }
60
61    public function setArtikellfdnr(?Artikel $artikellfdnr): self
62    {
63        $this->artikellfdnr = $artikellfdnr;
64
65        return $this;
66    }
67
68    public function getBestandinventur(): ?string
69    {
70        return $this->bestandinventur;
71    }
72
73    public function setBestandinventur(?string $bestandinventur): self
74    {
75        $this->bestandinventur = $bestandinventur;
76
77        return $this;
78    }
79
80    public function getBestandsoll(): ?string
81    {
82        return $this->bestandsoll;
83    }
84
85    public function setBestandsoll(?string $bestandsoll): self
86    {
87        $this->bestandsoll = $bestandsoll;
88
89        return $this;
90    }
91
92    public function getErfasstam(): ?\DateTimeImmutable
93    {
94        return $this->erfasstam;
95    }
96
97    public function setErfasstam(\DateTimeImmutable|\DateTime|null $erfasstam): self
98    {
99        $this->erfasstam = $erfasstam instanceof \DateTime
100            ? \DateTimeImmutable::createFromInterface($erfasstam)
101            : $erfasstam;
102
103        return $this;
104    }
105
106    public function getErfasstvon(): ?string
107    {
108        return $this->erfasstvon;
109    }
110
111    public function setErfasstvon(?string $erfasstvon): self
112    {
113        $this->erfasstvon = $erfasstvon;
114
115        return $this;
116    }
117
118    public function getGebucht(): ?string
119    {
120        return $this->gebucht;
121    }
122
123    public function setGebucht(?string $gebucht): self
124    {
125        $this->gebucht = $gebucht;
126
127        return $this;
128    }
129
130    public function getLagerlfdnr(): ?Lager
131    {
132        return $this->lagerlfdnr;
133    }
134
135    public function setLagerlfdnr(?Lager $lagerlfdnr): self
136    {
137        $this->lagerlfdnr = $lagerlfdnr;
138
139        return $this;
140    }
141
142    public function getLfdnr(): ?int
143    {
144        return $this->lfdnr;
145    }
146
147    public function getStichtag(): \DateTimeImmutable
148    {
149        return $this->stichtag;
150    }
151
152    public function setStichtag(\DateTimeImmutable|\DateTime $stichtag): self
153    {
154        $this->stichtag = $stichtag instanceof \DateTime
155            ? \DateTimeImmutable::createFromInterface($stichtag)
156            : $stichtag;
157
158        return $this;
159    }
160
161    public function getZaehldatum(): ?\DateTimeImmutable
162    {
163        return $this->zaehldatum;
164    }
165
166    public function setZaehldatum(\DateTimeImmutable|\DateTime|null $zaehldatum): self
167    {
168        $this->zaehldatum = $zaehldatum instanceof \DateTime
169            ? \DateTimeImmutable::createFromInterface($zaehldatum)
170            : $zaehldatum;
171
172        return $this;
173    }
174}