Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 16 |
|
0.00% |
0 / 11 |
CRAP | |
0.00% |
0 / 1 |
| Textauswahl | |
0.00% |
0 / 16 |
|
0.00% |
0 / 11 |
132 | |
0.00% |
0 / 1 |
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getHotkey | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setHotkey | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getZweck | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setZweck | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getBezeichnung | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBezeichnung | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getText | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setText | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getTextauswahlgruppe | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setTextauswahlgruppe | |
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 | |
| 10 | /** |
| 11 | * Textbaus. |
| 12 | * |
| 13 | * @see \Satag\AmicronEntityBundle\Tests\Entity\TextauswahlTest |
| 14 | */ |
| 15 | #[ORM\Entity] |
| 16 | #[ORM\Table(name: 'TEXTBAUS')] |
| 17 | #[ORM\Index(columns: ['tbgruplfdnr'], name: 'TEXTBAUS_TBGRUPLFDNR_FK')] |
| 18 | class Textauswahl |
| 19 | { |
| 20 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 21 | #[ORM\Id] |
| 22 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 23 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 24 | public private(set) ?int $lfdnr = null; |
| 25 | |
| 26 | #[ORM\Column(name: 'hotkey', type: Types::STRING, length: 1, nullable: true)] |
| 27 | private ?string $hotkey = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'zweck', type: Types::STRING, length: 20, nullable: true)] |
| 30 | private ?string $zweck = null; |
| 31 | |
| 32 | #[ORM\Column(name: 'bezeichnung', type: Types::STRING, length: 120, nullable: true)] |
| 33 | private ?string $bezeichnung = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'textunformatiert', type: Types::TEXT, nullable: true)] |
| 36 | private ?string $text = null; |
| 37 | |
| 38 | #[ORM\ManyToOne(targetEntity: Textauswahlgruppe::class, cascade: ['persist'])] |
| 39 | #[ORM\JoinColumn(name: 'tbgruplfdnr', referencedColumnName: 'lfdnr')] |
| 40 | private ?Textauswahlgruppe $textauswahlgruppe = null; |
| 41 | |
| 42 | public function getLfdnr(): ?int |
| 43 | { |
| 44 | return $this->lfdnr; |
| 45 | } |
| 46 | |
| 47 | public function getHotkey(): ?string |
| 48 | { |
| 49 | return $this->hotkey; |
| 50 | } |
| 51 | |
| 52 | public function setHotkey(?string $hotkey): self |
| 53 | { |
| 54 | $this->hotkey = $hotkey; |
| 55 | |
| 56 | return $this; |
| 57 | } |
| 58 | |
| 59 | public function getZweck(): ?string |
| 60 | { |
| 61 | return $this->zweck; |
| 62 | } |
| 63 | |
| 64 | public function setZweck(?string $zweck): self |
| 65 | { |
| 66 | $this->zweck = $zweck; |
| 67 | |
| 68 | return $this; |
| 69 | } |
| 70 | |
| 71 | public function getBezeichnung(): ?string |
| 72 | { |
| 73 | return $this->bezeichnung; |
| 74 | } |
| 75 | |
| 76 | public function setBezeichnung(?string $bezeichnung): self |
| 77 | { |
| 78 | $this->bezeichnung = $bezeichnung; |
| 79 | |
| 80 | return $this; |
| 81 | } |
| 82 | |
| 83 | public function getText(): ?string |
| 84 | { |
| 85 | return $this->text; |
| 86 | } |
| 87 | |
| 88 | public function setText(?string $text): self |
| 89 | { |
| 90 | $this->text = $text; |
| 91 | |
| 92 | return $this; |
| 93 | } |
| 94 | |
| 95 | public function getTextauswahlgruppe(): ?Textauswahlgruppe |
| 96 | { |
| 97 | return $this->textauswahlgruppe; |
| 98 | } |
| 99 | |
| 100 | public function setTextauswahlgruppe(?Textauswahlgruppe $textauswahlgruppe): self |
| 101 | { |
| 102 | $this->textauswahlgruppe = $textauswahlgruppe; |
| 103 | |
| 104 | return $this; |
| 105 | } |
| 106 | } |