Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 10 |
|
0.00% |
0 / 7 |
CRAP | |
0.00% |
0 / 1 |
| Artgrupshopzuord | |
0.00% |
0 / 10 |
|
0.00% |
0 / 7 |
56 | |
0.00% |
0 / 1 |
| getArtgruplfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setArtgruplfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getShopid | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setShopid | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getShoplfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setShoplfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 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: 'ARTGRUPSHOPZUORD')] |
| 14 | #[ORM\Index(columns: ['artgruplfdnr'], name: 'ARTGRUPSHOPZUORD_AGRPLFDNR_FK')] |
| 15 | #[ORM\UniqueConstraint(name: 'ARTGRUPSHOPZUORD_UK', columns: ['artgruplfdnr', 'shoplfdnr'])] |
| 16 | class Artgrupshopzuord implements BlameableEntityInterface |
| 17 | { |
| 18 | use BlameableEntity; |
| 19 | |
| 20 | #[ORM\ManyToOne(targetEntity: Artikelgruppe::class)] |
| 21 | #[ORM\JoinColumn(name: 'artgruplfdnr', referencedColumnName: 'lfdnr')] |
| 22 | private ?Artikelgruppe $artgruplfdnr = null; |
| 23 | |
| 24 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 25 | #[ORM\Id] |
| 26 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 27 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 28 | public private(set) ?int $lfdnr = null; |
| 29 | |
| 30 | #[ORM\Column(name: 'shopid', type: Types::STRING, length: 15, nullable: true)] |
| 31 | private ?string $shopid = null; |
| 32 | |
| 33 | #[ORM\Column(name: 'shoplfdnr', type: Types::INTEGER, nullable: false)] |
| 34 | private int $shoplfdnr; |
| 35 | |
| 36 | public function getArtgruplfdnr(): ?Artikelgruppe |
| 37 | { |
| 38 | return $this->artgruplfdnr; |
| 39 | } |
| 40 | |
| 41 | public function setArtgruplfdnr(?Artikelgruppe $artgruplfdnr): self |
| 42 | { |
| 43 | $this->artgruplfdnr = $artgruplfdnr; |
| 44 | |
| 45 | return $this; |
| 46 | } |
| 47 | |
| 48 | public function getLfdnr(): ?int |
| 49 | { |
| 50 | return $this->lfdnr; |
| 51 | } |
| 52 | |
| 53 | public function getShopid(): ?string |
| 54 | { |
| 55 | return $this->shopid; |
| 56 | } |
| 57 | |
| 58 | public function setShopid(?string $shopid): self |
| 59 | { |
| 60 | $this->shopid = $shopid; |
| 61 | |
| 62 | return $this; |
| 63 | } |
| 64 | |
| 65 | public function getShoplfdnr(): int |
| 66 | { |
| 67 | return $this->shoplfdnr; |
| 68 | } |
| 69 | |
| 70 | public function setShoplfdnr(int $shoplfdnr): self |
| 71 | { |
| 72 | $this->shoplfdnr = $shoplfdnr; |
| 73 | |
| 74 | return $this; |
| 75 | } |
| 76 | } |