Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
28 / 28 |
|
100.00% |
19 / 19 |
CRAP | |
100.00% |
1 / 1 |
| Artikelstueckliste | |
100.00% |
28 / 28 |
|
100.00% |
19 / 19 |
19 | |
100.00% |
1 / 1 |
| getArtikel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setArtikel | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getBemerkung | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBemerkung | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getFreifeld1 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFreifeld1 | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getFreifeld2 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFreifeld2 | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getFreifeld3 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFreifeld3 | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getMenge | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setMenge | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSortierung | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSortierung | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getStuecklistenartikel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setStuecklistenartikel | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLager | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLager | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Satag\AmicronEntityBundle\Entity; |
| 6 | |
| 7 | use Doctrine\DBAL\Types\Types; |
| 8 | use Doctrine\ORM\Mapping as ORM; |
| 9 | use Symfony\Component\Validator\Constraints as Assert; |
| 10 | |
| 11 | #[ORM\Entity] |
| 12 | #[ORM\Table(name: 'ARTSTLST')] |
| 13 | #[ORM\Index(columns: ['artikellfdnr'], name: 'ARTSTLST_ARTIKELLFDNR_FK')] |
| 14 | #[ORM\Index(columns: ['oartikellfdnr'], name: 'ARTSTLST_OARTIKELLFDNR_FK')] |
| 15 | class Artikelstueckliste |
| 16 | { |
| 17 | #[ORM\ManyToOne(targetEntity: Artikel::class)] |
| 18 | #[ORM\JoinColumn(name: 'artikellfdnr', referencedColumnName: 'lfdnr')] |
| 19 | private ?Artikel $artikel = null; |
| 20 | |
| 21 | #[ORM\Column(name: 'bemerkung', type: Types::TEXT, nullable: true)] |
| 22 | private ?string $bemerkung = null; |
| 23 | |
| 24 | #[ORM\Column(name: 'freifeld1', type: Types::STRING, length: 255, nullable: true)] |
| 25 | private ?string $freifeld1 = null; |
| 26 | |
| 27 | #[ORM\Column(name: 'freifeld2', type: Types::STRING, length: 255, nullable: true)] |
| 28 | private ?string $freifeld2 = null; |
| 29 | |
| 30 | #[ORM\Column(name: 'freifeld3', type: Types::STRING, length: 255, nullable: true)] |
| 31 | private ?string $freifeld3 = null; |
| 32 | |
| 33 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 34 | #[ORM\Id] |
| 35 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 36 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 37 | public private(set) ?int $lfdnr = null; |
| 38 | |
| 39 | #[ORM\Column(name: 'menge', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 40 | #[Assert\DisableAutoMapping] |
| 41 | private ?string $menge = null; |
| 42 | |
| 43 | #[ORM\Column(name: 'sortierung', type: Types::STRING, length: 20, nullable: true)] |
| 44 | private ?string $sortierung = null; |
| 45 | |
| 46 | #[ORM\ManyToOne(targetEntity: Artikel::class)] |
| 47 | #[ORM\JoinColumn(name: 'oartikellfdnr', referencedColumnName: 'lfdnr')] |
| 48 | private ?Artikel $stuecklistenartikel = null; |
| 49 | |
| 50 | #[ORM\ManyToOne(targetEntity: Lager::class)] |
| 51 | #[ORM\JoinColumn(name: 'lagerlfdnr', referencedColumnName: 'lfdnr')] |
| 52 | private ?Lager $lager = null; |
| 53 | |
| 54 | public function getArtikel(): ?Artikel |
| 55 | { |
| 56 | return $this->artikel; |
| 57 | } |
| 58 | |
| 59 | public function setArtikel(?Artikel $artikel): self |
| 60 | { |
| 61 | $this->artikel = $artikel; |
| 62 | |
| 63 | return $this; |
| 64 | } |
| 65 | |
| 66 | public function getBemerkung(): ?string |
| 67 | { |
| 68 | return $this->bemerkung; |
| 69 | } |
| 70 | |
| 71 | public function setBemerkung(?string $bemerkung): self |
| 72 | { |
| 73 | $this->bemerkung = $bemerkung; |
| 74 | |
| 75 | return $this; |
| 76 | } |
| 77 | |
| 78 | public function getFreifeld1(): ?string |
| 79 | { |
| 80 | return $this->freifeld1; |
| 81 | } |
| 82 | |
| 83 | public function setFreifeld1(?string $freifeld1): self |
| 84 | { |
| 85 | $this->freifeld1 = $freifeld1; |
| 86 | |
| 87 | return $this; |
| 88 | } |
| 89 | |
| 90 | public function getFreifeld2(): ?string |
| 91 | { |
| 92 | return $this->freifeld2; |
| 93 | } |
| 94 | |
| 95 | public function setFreifeld2(?string $freifeld2): self |
| 96 | { |
| 97 | $this->freifeld2 = $freifeld2; |
| 98 | |
| 99 | return $this; |
| 100 | } |
| 101 | |
| 102 | public function getFreifeld3(): ?string |
| 103 | { |
| 104 | return $this->freifeld3; |
| 105 | } |
| 106 | |
| 107 | public function setFreifeld3(?string $freifeld3): self |
| 108 | { |
| 109 | $this->freifeld3 = $freifeld3; |
| 110 | |
| 111 | return $this; |
| 112 | } |
| 113 | |
| 114 | public function getLfdnr(): ?int |
| 115 | { |
| 116 | return $this->lfdnr; |
| 117 | } |
| 118 | |
| 119 | public function getMenge(): ?string |
| 120 | { |
| 121 | return $this->menge; |
| 122 | } |
| 123 | |
| 124 | public function setMenge(?string $menge): self |
| 125 | { |
| 126 | $this->menge = $menge; |
| 127 | |
| 128 | return $this; |
| 129 | } |
| 130 | |
| 131 | public function getSortierung(): ?string |
| 132 | { |
| 133 | return $this->sortierung; |
| 134 | } |
| 135 | |
| 136 | public function setSortierung(?string $sortierung): self |
| 137 | { |
| 138 | $this->sortierung = $sortierung; |
| 139 | |
| 140 | return $this; |
| 141 | } |
| 142 | |
| 143 | public function getStuecklistenartikel(): ?Artikel |
| 144 | { |
| 145 | return $this->stuecklistenartikel; |
| 146 | } |
| 147 | |
| 148 | public function setStuecklistenartikel(?Artikel $stuecklistenartikel): self |
| 149 | { |
| 150 | $this->stuecklistenartikel = $stuecklistenartikel; |
| 151 | |
| 152 | return $this; |
| 153 | } |
| 154 | |
| 155 | public function getLager(): ?Lager |
| 156 | { |
| 157 | return $this->lager; |
| 158 | } |
| 159 | |
| 160 | public function setLager(?Lager $lager): self |
| 161 | { |
| 162 | $this->lager = $lager; |
| 163 | |
| 164 | return $this; |
| 165 | } |
| 166 | } |