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
Auftragzuord
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
 getAuftraglfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAuftraglfdnr
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
 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
 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: 'AUFTRAGZUORD')]
12#[ORM\Index(columns: ['auftraglfdnr'], name: 'AUFTRAGZUORD_AUFTRAGLFDNR_FK')]
13#[ORM\UniqueConstraint(name: 'AUFTRAGZUORD_UK', columns: ['zieltyp', 'ziellfdnr', 'auftraglfdnr'])]
14class Auftragzuord
15{
16    #[ORM\Column(name: 'angelegtam', type: Types::DATETIME_IMMUTABLE, nullable: true)]
17    private ?\DateTimeImmutable $angelegtam = null;
18
19    #[ORM\ManyToOne(targetEntity: Auftrag::class)]
20    #[ORM\JoinColumn(name: 'auftraglfdnr', referencedColumnName: 'lfdnr')]
21    private ?Auftrag $auftraglfdnr = null;
22
23    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
24    #[ORM\Id]
25    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
26    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
27    public private(set) ?int $lfdnr = null;
28
29    #[ORM\Column(name: 'master', type: Types::INTEGER, nullable: false)]
30    private int $master;
31
32    #[ORM\Column(name: 'text', type: Types::STRING, length: 255, nullable: true)]
33    private ?string $text = 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 getAuftraglfdnr(): ?Auftrag
54    {
55        return $this->auftraglfdnr;
56    }
57
58    public function setAuftraglfdnr(?Auftrag $auftraglfdnr): self
59    {
60        $this->auftraglfdnr = $auftraglfdnr;
61
62        return $this;
63    }
64
65    public function getLfdnr(): ?int
66    {
67        return $this->lfdnr;
68    }
69
70    public function getMaster(): int
71    {
72        return $this->master;
73    }
74
75    public function setMaster(int $master): self
76    {
77        $this->master = $master;
78
79        return $this;
80    }
81
82    public function getText(): ?string
83    {
84        return $this->text;
85    }
86
87    public function setText(?string $text): self
88    {
89        $this->text = $text;
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}