Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
87.50% |
7 / 8 |
|
83.33% |
5 / 6 |
CRAP | |
0.00% |
0 / 1 |
| ArtikelStsatzlandzuord | |
87.50% |
7 / 8 |
|
83.33% |
5 / 6 |
6.07 | |
0.00% |
0 / 1 |
| __toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getArtikel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setArtikel | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getStsatzland | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setStsatzland | |
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\Doctrine\IdGeneratorLfdnr; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntity; |
| 11 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 12 | |
| 13 | /** |
| 14 | * Article country-specific tax assignment mapping to ARTIKELSTSATZLANDZUORD. |
| 15 | */ |
| 16 | #[ORM\Entity] |
| 17 | #[ORM\Table(name: 'ARTIKELSTSATZLANDZUORD')] |
| 18 | #[ORM\Index(columns: ['artikellfdnr'], name: 'ARTIKELSTSATZLANDZUORD_AL_FK')] |
| 19 | #[ORM\Index(columns: ['stsatzlandlfdnr'], name: 'ARTIKELSTSATZLANDZUORD_SSL_FK')] |
| 20 | #[ORM\UniqueConstraint(name: 'ARTIKELSTSATZLANDZUORD_UK', columns: ['artikellfdnr', 'stsatzlandlfdnr'])] |
| 21 | class ArtikelStsatzlandzuord implements \Stringable, BlameableEntityInterface |
| 22 | { |
| 23 | use BlameableEntity; |
| 24 | |
| 25 | #[ORM\ManyToOne(targetEntity: Artikel::class)] |
| 26 | #[ORM\JoinColumn(name: 'artikellfdnr', referencedColumnName: 'lfdnr')] |
| 27 | private ?Artikel $artikel = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 30 | #[ORM\Id] |
| 31 | #[ORM\GeneratedValue(strategy: 'CUSTOM')] |
| 32 | #[ORM\CustomIdGenerator(class: IdGeneratorLfdnr::class)] |
| 33 | private ?int $lfdnr = null; |
| 34 | |
| 35 | #[ORM\ManyToOne(targetEntity: Stsatzland::class)] |
| 36 | #[ORM\JoinColumn(name: 'stsatzlandlfdnr', referencedColumnName: 'lfdnr')] |
| 37 | private ?Stsatzland $stsatzland = null; |
| 38 | |
| 39 | public function __toString(): string |
| 40 | { |
| 41 | return \sprintf('\\\\ArtikelStsatzlandzuord:%s', $this->lfdnr); |
| 42 | } |
| 43 | |
| 44 | public function getArtikel(): ?Artikel |
| 45 | { |
| 46 | return $this->artikel; |
| 47 | } |
| 48 | |
| 49 | public function setArtikel(?Artikel $artikel): self |
| 50 | { |
| 51 | $this->artikel = $artikel; |
| 52 | |
| 53 | return $this; |
| 54 | } |
| 55 | |
| 56 | public function getLfdnr(): ?int |
| 57 | { |
| 58 | return $this->lfdnr; |
| 59 | } |
| 60 | |
| 61 | public function getStsatzland(): ?Stsatzland |
| 62 | { |
| 63 | return $this->stsatzland; |
| 64 | } |
| 65 | |
| 66 | public function setStsatzland(?Stsatzland $stsatzland): self |
| 67 | { |
| 68 | $this->stsatzland = $stsatzland; |
| 69 | |
| 70 | return $this; |
| 71 | } |
| 72 | } |