Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
19 / 19
100.00% covered (success)
100.00%
13 / 13
CRAP
100.00% covered (success)
100.00%
1 / 1
Umsatzzuord
100.00% covered (success)
100.00%
19 / 19
100.00% covered (success)
100.00%
13 / 13
14
100.00% covered (success)
100.00%
1 / 1
 getAngelegtam
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAngelegtam
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
2
 getLfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMaster
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMaster
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
 getUmsatzlfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setUmsatzlfdnr
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getZiellfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setZiellfdnr
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getZieltyp
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setZieltyp
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: 'UMSATZZUORD')]
12#[ORM\Index(columns: ['umsatzlfdnr'], name: 'UMSATZZUORD_UMSATZLFDNR_FK')]
13#[ORM\UniqueConstraint(name: 'UMSATZZUORD_UK', columns: ['zieltyp', 'ziellfdnr', 'umsatzlfdnr'])]
14class Umsatzzuord
15{
16    #[ORM\Column(name: 'angelegtam', type: Types::DATETIME_IMMUTABLE, nullable: true)]
17    private ?\DateTimeImmutable $angelegtam = null;
18
19    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
20    #[ORM\Id]
21    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
22    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
23    public private(set) ?int $lfdnr = null;
24
25    #[ORM\Column(name: 'master', type: Types::INTEGER, nullable: false)]
26    private int $master;
27
28    #[ORM\Column(name: 'text', type: Types::STRING, length: 255, nullable: true)]
29    private ?string $text = null;
30
31    #[ORM\ManyToOne(targetEntity: UmsatzAbstract::class)]
32    #[ORM\JoinColumn(name: 'umsatzlfdnr', referencedColumnName: 'lfdnr')]
33    private ?UmsatzAbstract $umsatzlfdnr = null;
34
35    #[ORM\Column(name: 'ziellfdnr', type: Types::INTEGER, nullable: false)]
36    private int $ziellfdnr;
37
38    #[ORM\Column(name: 'zieltyp', type: Types::INTEGER, nullable: false)]
39    private int $zieltyp;
40
41    public function getAngelegtam(): ?\DateTimeImmutable
42    {
43        return $this->angelegtam;
44    }
45
46    public function setAngelegtam(\DateTimeImmutable|\DateTime|null $angelegtam): static
47    {
48        $this->angelegtam = $angelegtam instanceof \DateTime ? \DateTimeImmutable::createFromInterface($angelegtam) : $angelegtam;
49
50        return $this;
51    }
52
53    public function getLfdnr(): ?int
54    {
55        return $this->lfdnr;
56    }
57
58    public function getMaster(): int
59    {
60        return $this->master;
61    }
62
63    public function setMaster(int $master): self
64    {
65        $this->master = $master;
66
67        return $this;
68    }
69
70    public function getText(): ?string
71    {
72        return $this->text;
73    }
74
75    public function setText(?string $text): self
76    {
77        $this->text = $text;
78
79        return $this;
80    }
81
82    public function getUmsatzlfdnr(): ?UmsatzAbstract
83    {
84        return $this->umsatzlfdnr;
85    }
86
87    public function setUmsatzlfdnr(?UmsatzAbstract $umsatzlfdnr): self
88    {
89        $this->umsatzlfdnr = $umsatzlfdnr;
90
91        return $this;
92    }
93
94    public function getZiellfdnr(): int
95    {
96        return $this->ziellfdnr;
97    }
98
99    public function setZiellfdnr(int $ziellfdnr): self
100    {
101        $this->ziellfdnr = $ziellfdnr;
102
103        return $this;
104    }
105
106    public function getZieltyp(): int
107    {
108        return $this->zieltyp;
109    }
110
111    public function setZieltyp(int $zieltyp): self
112    {
113        $this->zieltyp = $zieltyp;
114
115        return $this;
116    }
117}