Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
96.92% |
63 / 65 |
|
95.12% |
39 / 41 |
CRAP | |
0.00% |
0 / 1 |
| Artikelpreis | |
96.92% |
63 / 65 |
|
95.12% |
39 / 41 |
44 | |
0.00% |
0 / 1 |
| getAbgesamtumsatz | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setAbgesamtumsatz | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getAbmen | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setAbmen | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getArt | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setArt | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getArtikellfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setArtikellfdnr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getArtikelsperre | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setArtikelsperre | |
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 | |||
| getGeaendertam | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGeaendertam | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
2 | |||
| getGeaendertvon | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGeaendertvon | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getGueltigab | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGueltigab | |
75.00% |
3 / 4 |
|
0.00% |
0 / 1 |
2.06 | |||
| getGueltigbis | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGueltigbis | |
75.00% |
3 / 4 |
|
0.00% |
0 / 1 |
2.06 | |||
| getKunlfrlfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setKunlfrlfdnr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferantartikelnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferantartikelnr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferzeittage | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferzeittage | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLieferzeittext | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLieferzeittext | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getPreis | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setPreis | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getPreiseinheit | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setPreiseinheit | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getRabatt | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setRabatt | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getRabattfaehig | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setRabattfaehig | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getRabattgruppe | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setRabattgruppe | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getVkempfohlen | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setVkempfohlen | |
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 | |
| 10 | #[ORM\Entity] |
| 11 | #[ORM\Table(name: 'ARTIKELPREISE')] |
| 12 | #[ORM\Index(columns: ['artikellfdnr'], name: 'ARTIKELPREIS_ARTIKELLFDNR_FK')] |
| 13 | #[ORM\Index(columns: ['kunlfrlfdnr'], name: 'ARTIKELPREIS_KUNLFRLFDNR_FK')] |
| 14 | class Artikelpreis |
| 15 | { |
| 16 | #[ORM\Column(name: 'abgesamtumsatz', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 17 | private ?string $abgesamtumsatz = null; |
| 18 | |
| 19 | #[ORM\Column(name: 'abmen', type: 'amicron_decimal', precision: 15, scale: 6, nullable: false)] |
| 20 | private string $abmen; |
| 21 | |
| 22 | #[ORM\Column(name: 'art', type: Types::STRING, length: 1, nullable: true)] |
| 23 | private ?string $art = null; |
| 24 | |
| 25 | #[ORM\ManyToOne(targetEntity: Artikel::class)] |
| 26 | #[ORM\JoinColumn(name: 'artikellfdnr', referencedColumnName: 'lfdnr')] |
| 27 | private ?Artikel $artikellfdnr = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'artikelsperre', type: Types::STRING, length: 1, nullable: true)] |
| 30 | private ?string $artikelsperre = null; |
| 31 | |
| 32 | #[ORM\Column(name: 'bemerkung', type: Types::STRING, length: 60, nullable: true)] |
| 33 | private ?string $bemerkung = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'geaendertam', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 36 | private ?\DateTimeImmutable $geaendertam = null; |
| 37 | |
| 38 | #[ORM\Column(name: 'geaendertvon', type: Types::STRING, length: 3, nullable: true)] |
| 39 | private ?string $geaendertvon = null; |
| 40 | |
| 41 | #[ORM\Column(name: 'gueltigab', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 42 | private ?\DateTimeImmutable $gueltigab = null; |
| 43 | |
| 44 | #[ORM\Column(name: 'gueltigbis', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 45 | private ?\DateTimeImmutable $gueltigbis = null; |
| 46 | |
| 47 | #[ORM\ManyToOne(targetEntity: Adresse::class)] |
| 48 | #[ORM\JoinColumn(name: 'kunlfrlfdnr', referencedColumnName: 'lfdnr')] |
| 49 | private ?Adresse $kunlfrlfdnr = null; |
| 50 | |
| 51 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 52 | #[ORM\Id] |
| 53 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 54 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 55 | public private(set) ?int $lfdnr = null; |
| 56 | |
| 57 | #[ORM\Column(name: 'lieferantartikelnr', type: Types::STRING, length: 30, nullable: true)] |
| 58 | private ?string $lieferantartikelnr = null; |
| 59 | |
| 60 | #[ORM\Column(name: 'lieferzeittage', type: Types::INTEGER, nullable: true)] |
| 61 | private ?int $lieferzeittage = null; |
| 62 | |
| 63 | #[ORM\Column(name: 'lieferzeittext', type: Types::STRING, length: 30, nullable: true)] |
| 64 | private ?string $lieferzeittext = null; |
| 65 | |
| 66 | #[ORM\Column(name: 'preis', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 67 | private ?string $preis = null; |
| 68 | |
| 69 | #[ORM\Column(name: 'preiseinheit', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 70 | private ?string $preiseinheit = null; |
| 71 | |
| 72 | #[ORM\Column(name: 'rabatt', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 73 | private ?string $rabatt = null; |
| 74 | |
| 75 | #[ORM\Column(name: 'rabattfaehig', type: Types::STRING, length: 1, nullable: true)] |
| 76 | private ?string $rabattfaehig = null; |
| 77 | |
| 78 | #[ORM\Column(name: 'rabattgruppe', type: Types::STRING, length: 20, nullable: true)] |
| 79 | private ?string $rabattgruppe = null; |
| 80 | |
| 81 | #[ORM\Column(name: 'vkempfohlen', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 82 | private ?string $vkempfohlen = null; |
| 83 | |
| 84 | public function getAbgesamtumsatz(): ?string |
| 85 | { |
| 86 | return $this->abgesamtumsatz; |
| 87 | } |
| 88 | |
| 89 | public function setAbgesamtumsatz(?string $abgesamtumsatz): self |
| 90 | { |
| 91 | $this->abgesamtumsatz = $abgesamtumsatz; |
| 92 | |
| 93 | return $this; |
| 94 | } |
| 95 | |
| 96 | public function getAbmen(): string |
| 97 | { |
| 98 | return $this->abmen; |
| 99 | } |
| 100 | |
| 101 | public function setAbmen(string $abmen): self |
| 102 | { |
| 103 | $this->abmen = $abmen; |
| 104 | |
| 105 | return $this; |
| 106 | } |
| 107 | |
| 108 | public function getArt(): ?string |
| 109 | { |
| 110 | return $this->art; |
| 111 | } |
| 112 | |
| 113 | public function setArt(?string $art): self |
| 114 | { |
| 115 | $this->art = $art; |
| 116 | |
| 117 | return $this; |
| 118 | } |
| 119 | |
| 120 | public function getArtikellfdnr(): ?Artikel |
| 121 | { |
| 122 | return $this->artikellfdnr; |
| 123 | } |
| 124 | |
| 125 | public function setArtikellfdnr(?Artikel $artikellfdnr): self |
| 126 | { |
| 127 | $this->artikellfdnr = $artikellfdnr; |
| 128 | |
| 129 | return $this; |
| 130 | } |
| 131 | |
| 132 | public function getArtikelsperre(): ?string |
| 133 | { |
| 134 | return $this->artikelsperre; |
| 135 | } |
| 136 | |
| 137 | public function setArtikelsperre(?string $artikelsperre): self |
| 138 | { |
| 139 | $this->artikelsperre = $artikelsperre; |
| 140 | |
| 141 | return $this; |
| 142 | } |
| 143 | |
| 144 | public function getBemerkung(): ?string |
| 145 | { |
| 146 | return $this->bemerkung; |
| 147 | } |
| 148 | |
| 149 | public function setBemerkung(?string $bemerkung): self |
| 150 | { |
| 151 | $this->bemerkung = $bemerkung; |
| 152 | |
| 153 | return $this; |
| 154 | } |
| 155 | |
| 156 | public function getGeaendertam(): ?\DateTimeImmutable |
| 157 | { |
| 158 | return $this->geaendertam; |
| 159 | } |
| 160 | |
| 161 | public function setGeaendertam(\DateTimeImmutable|\DateTime|null $geaendertam): static |
| 162 | { |
| 163 | $this->geaendertam = $geaendertam instanceof \DateTime ? \DateTimeImmutable::createFromMutable($geaendertam) : $geaendertam; |
| 164 | |
| 165 | return $this; |
| 166 | } |
| 167 | |
| 168 | public function getGeaendertvon(): ?string |
| 169 | { |
| 170 | return $this->geaendertvon; |
| 171 | } |
| 172 | |
| 173 | public function setGeaendertvon(?string $geaendertvon): static |
| 174 | { |
| 175 | $this->geaendertvon = $geaendertvon; |
| 176 | |
| 177 | return $this; |
| 178 | } |
| 179 | |
| 180 | public function getGueltigab(): ?\DateTimeImmutable |
| 181 | { |
| 182 | return $this->gueltigab; |
| 183 | } |
| 184 | |
| 185 | public function setGueltigab(\DateTimeImmutable|\DateTime|null $gueltigab): self |
| 186 | { |
| 187 | $this->gueltigab = $gueltigab instanceof \DateTime |
| 188 | ? \DateTimeImmutable::createFromMutable($gueltigab) |
| 189 | : $gueltigab; |
| 190 | |
| 191 | return $this; |
| 192 | } |
| 193 | |
| 194 | public function getGueltigbis(): ?\DateTimeImmutable |
| 195 | { |
| 196 | return $this->gueltigbis; |
| 197 | } |
| 198 | |
| 199 | public function setGueltigbis(\DateTimeImmutable|\DateTime|null $gueltigbis): self |
| 200 | { |
| 201 | $this->gueltigbis = $gueltigbis instanceof \DateTime |
| 202 | ? \DateTimeImmutable::createFromMutable($gueltigbis) |
| 203 | : $gueltigbis; |
| 204 | |
| 205 | return $this; |
| 206 | } |
| 207 | |
| 208 | public function getKunlfrlfdnr(): ?Adresse |
| 209 | { |
| 210 | return $this->kunlfrlfdnr; |
| 211 | } |
| 212 | |
| 213 | public function setKunlfrlfdnr(?Adresse $kunlfrlfdnr): self |
| 214 | { |
| 215 | $this->kunlfrlfdnr = $kunlfrlfdnr; |
| 216 | |
| 217 | return $this; |
| 218 | } |
| 219 | |
| 220 | public function getLfdnr(): ?int |
| 221 | { |
| 222 | return $this->lfdnr; |
| 223 | } |
| 224 | |
| 225 | public function getLieferantartikelnr(): ?string |
| 226 | { |
| 227 | return $this->lieferantartikelnr; |
| 228 | } |
| 229 | |
| 230 | public function setLieferantartikelnr(?string $lieferantartikelnr): self |
| 231 | { |
| 232 | $this->lieferantartikelnr = $lieferantartikelnr; |
| 233 | |
| 234 | return $this; |
| 235 | } |
| 236 | |
| 237 | public function getLieferzeittage(): ?int |
| 238 | { |
| 239 | return $this->lieferzeittage; |
| 240 | } |
| 241 | |
| 242 | public function setLieferzeittage(?int $lieferzeittage): self |
| 243 | { |
| 244 | $this->lieferzeittage = $lieferzeittage; |
| 245 | |
| 246 | return $this; |
| 247 | } |
| 248 | |
| 249 | public function getLieferzeittext(): ?string |
| 250 | { |
| 251 | return $this->lieferzeittext; |
| 252 | } |
| 253 | |
| 254 | public function setLieferzeittext(?string $lieferzeittext): self |
| 255 | { |
| 256 | $this->lieferzeittext = $lieferzeittext; |
| 257 | |
| 258 | return $this; |
| 259 | } |
| 260 | |
| 261 | public function getPreis(): ?string |
| 262 | { |
| 263 | return $this->preis; |
| 264 | } |
| 265 | |
| 266 | public function setPreis(?string $preis): self |
| 267 | { |
| 268 | $this->preis = $preis; |
| 269 | |
| 270 | return $this; |
| 271 | } |
| 272 | |
| 273 | public function getPreiseinheit(): ?string |
| 274 | { |
| 275 | return $this->preiseinheit; |
| 276 | } |
| 277 | |
| 278 | public function setPreiseinheit(?string $preiseinheit): self |
| 279 | { |
| 280 | $this->preiseinheit = $preiseinheit; |
| 281 | |
| 282 | return $this; |
| 283 | } |
| 284 | |
| 285 | public function getRabatt(): ?string |
| 286 | { |
| 287 | return $this->rabatt; |
| 288 | } |
| 289 | |
| 290 | public function setRabatt(?string $rabatt): self |
| 291 | { |
| 292 | $this->rabatt = $rabatt; |
| 293 | |
| 294 | return $this; |
| 295 | } |
| 296 | |
| 297 | public function getRabattfaehig(): ?string |
| 298 | { |
| 299 | return $this->rabattfaehig; |
| 300 | } |
| 301 | |
| 302 | public function setRabattfaehig(?string $rabattfaehig): self |
| 303 | { |
| 304 | $this->rabattfaehig = $rabattfaehig; |
| 305 | |
| 306 | return $this; |
| 307 | } |
| 308 | |
| 309 | public function getRabattgruppe(): ?string |
| 310 | { |
| 311 | return $this->rabattgruppe; |
| 312 | } |
| 313 | |
| 314 | public function setRabattgruppe(?string $rabattgruppe): self |
| 315 | { |
| 316 | $this->rabattgruppe = $rabattgruppe; |
| 317 | |
| 318 | return $this; |
| 319 | } |
| 320 | |
| 321 | public function getVkempfohlen(): ?string |
| 322 | { |
| 323 | return $this->vkempfohlen; |
| 324 | } |
| 325 | |
| 326 | public function setVkempfohlen(?string $vkempfohlen): self |
| 327 | { |
| 328 | $this->vkempfohlen = $vkempfohlen; |
| 329 | |
| 330 | return $this; |
| 331 | } |
| 332 | } |