Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
16 / 16 |
|
100.00% |
11 / 11 |
CRAP | |
100.00% |
1 / 1 |
| Provisionsgruppen | |
100.00% |
16 / 16 |
|
100.00% |
11 / 11 |
11 | |
100.00% |
1 / 1 |
| getArtgruplfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setArtgruplfdnr | |
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 | |||
| getGruppelfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGruppelfdnr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getProvision | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setProvision | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getVertreterlfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setVertreterlfdnr | |
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 Satag\AmicronEntityBundle\Traits\BlameableEntity; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 11 | |
| 12 | #[ORM\Entity] |
| 13 | #[ORM\Table(name: 'PROVISIONSGRUPPEN')] |
| 14 | #[ORM\Index(columns: ['artgruplfdnr'], name: 'PG_ARTGRUPLFDNR_FK')] |
| 15 | #[ORM\Index(columns: ['artikellfdnr'], name: 'PG_ARTIKELLFDNR_FK')] |
| 16 | #[ORM\Index(columns: ['gruppelfdnr'], name: 'PG_GRUPPELFDNR_FK')] |
| 17 | #[ORM\Index(columns: ['vertreterlfdnr'], name: 'PG_VERTRETERLFDNR_FK')] |
| 18 | #[ORM\UniqueConstraint(name: 'PROVISIONSGRUPPEN_UK', columns: ['artikellfdnr', 'artgruplfdnr', 'gruppelfdnr', 'vertreterlfdnr'])] |
| 19 | class Provisionsgruppen implements BlameableEntityInterface |
| 20 | { |
| 21 | use BlameableEntity; |
| 22 | |
| 23 | #[ORM\ManyToOne(targetEntity: Artikelgruppe::class)] |
| 24 | #[ORM\JoinColumn(name: 'artgruplfdnr', referencedColumnName: 'lfdnr')] |
| 25 | private ?Artikelgruppe $artgruplfdnr = null; |
| 26 | |
| 27 | #[ORM\ManyToOne(targetEntity: Artikel::class)] |
| 28 | #[ORM\JoinColumn(name: 'artikellfdnr', referencedColumnName: 'lfdnr')] |
| 29 | private ?Artikel $artikellfdnr = null; |
| 30 | |
| 31 | #[ORM\ManyToOne(targetEntity: Adressgruppe::class)] |
| 32 | #[ORM\JoinColumn(name: 'gruppelfdnr', referencedColumnName: 'lfdnr')] |
| 33 | private ?Adressgruppe $gruppelfdnr = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 36 | #[ORM\Id] |
| 37 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 38 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 39 | public private(set) ?int $lfdnr = null; |
| 40 | |
| 41 | #[ORM\Column(name: 'provision', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 42 | private ?string $provision = null; |
| 43 | |
| 44 | #[ORM\ManyToOne(targetEntity: Adresse::class)] |
| 45 | #[ORM\JoinColumn(name: 'vertreterlfdnr', referencedColumnName: 'lfdnr')] |
| 46 | private ?Adresse $vertreterlfdnr = null; |
| 47 | |
| 48 | public function getArtgruplfdnr(): ?Artikelgruppe |
| 49 | { |
| 50 | return $this->artgruplfdnr; |
| 51 | } |
| 52 | |
| 53 | public function setArtgruplfdnr(?Artikelgruppe $artgruplfdnr): self |
| 54 | { |
| 55 | $this->artgruplfdnr = $artgruplfdnr; |
| 56 | |
| 57 | return $this; |
| 58 | } |
| 59 | |
| 60 | public function getArtikellfdnr(): ?Artikel |
| 61 | { |
| 62 | return $this->artikellfdnr; |
| 63 | } |
| 64 | |
| 65 | public function setArtikellfdnr(?Artikel $artikellfdnr): self |
| 66 | { |
| 67 | $this->artikellfdnr = $artikellfdnr; |
| 68 | |
| 69 | return $this; |
| 70 | } |
| 71 | |
| 72 | public function getGruppelfdnr(): ?Adressgruppe |
| 73 | { |
| 74 | return $this->gruppelfdnr; |
| 75 | } |
| 76 | |
| 77 | public function setGruppelfdnr(?Adressgruppe $gruppelfdnr): self |
| 78 | { |
| 79 | $this->gruppelfdnr = $gruppelfdnr; |
| 80 | |
| 81 | return $this; |
| 82 | } |
| 83 | |
| 84 | public function getLfdnr(): ?int |
| 85 | { |
| 86 | return $this->lfdnr; |
| 87 | } |
| 88 | |
| 89 | public function getProvision(): ?string |
| 90 | { |
| 91 | return $this->provision; |
| 92 | } |
| 93 | |
| 94 | public function setProvision(?string $provision): self |
| 95 | { |
| 96 | $this->provision = $provision; |
| 97 | |
| 98 | return $this; |
| 99 | } |
| 100 | |
| 101 | public function getVertreterlfdnr(): ?Adresse |
| 102 | { |
| 103 | return $this->vertreterlfdnr; |
| 104 | } |
| 105 | |
| 106 | public function setVertreterlfdnr(?Adresse $vertreterlfdnr): self |
| 107 | { |
| 108 | $this->vertreterlfdnr = $vertreterlfdnr; |
| 109 | |
| 110 | return $this; |
| 111 | } |
| 112 | } |