Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
CRAP | |
0.00% |
0 / 1 |
| Werbeaktionenordner | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
30 | |
0.00% |
0 / 1 |
| getBezeichnung | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBezeichnung | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getVaterlfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setVaterlfdnr | |
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: 'WERBEAKTIONENORDNER')] |
| 14 | #[ORM\Index(columns: ['vaterlfdnr'], name: 'WERBEAKTIONENORDNER_VLFDNR_FK')] |
| 15 | class Werbeaktionenordner implements BlameableEntityInterface |
| 16 | { |
| 17 | use BlameableEntity; |
| 18 | |
| 19 | #[ORM\Column(name: 'bezeichnung', type: Types::STRING, length: 80, nullable: true)] |
| 20 | private ?string $bezeichnung = null; |
| 21 | |
| 22 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 23 | #[ORM\Id] |
| 24 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 25 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 26 | public private(set) ?int $lfdnr = null; |
| 27 | |
| 28 | #[ORM\ManyToOne(targetEntity: Werbeaktionenordner::class)] |
| 29 | #[ORM\JoinColumn(name: 'vaterlfdnr', referencedColumnName: 'lfdnr')] |
| 30 | private ?Werbeaktionenordner $vaterlfdnr = null; |
| 31 | |
| 32 | public function getBezeichnung(): ?string |
| 33 | { |
| 34 | return $this->bezeichnung; |
| 35 | } |
| 36 | |
| 37 | public function setBezeichnung(?string $bezeichnung): self |
| 38 | { |
| 39 | $this->bezeichnung = $bezeichnung; |
| 40 | |
| 41 | return $this; |
| 42 | } |
| 43 | |
| 44 | public function getLfdnr(): ?int |
| 45 | { |
| 46 | return $this->lfdnr; |
| 47 | } |
| 48 | |
| 49 | public function getVaterlfdnr(): ?self |
| 50 | { |
| 51 | return $this->vaterlfdnr; |
| 52 | } |
| 53 | |
| 54 | public function setVaterlfdnr(?self $vaterlfdnr): self |
| 55 | { |
| 56 | $this->vaterlfdnr = $vaterlfdnr; |
| 57 | |
| 58 | return $this; |
| 59 | } |
| 60 | } |