Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
16 / 16 |
|
100.00% |
11 / 11 |
CRAP | |
100.00% |
1 / 1 |
| Textlist | |
100.00% |
16 / 16 |
|
100.00% |
11 / 11 |
11 | |
100.00% |
1 / 1 |
| getFeld | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFeld | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getHotkey | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setHotkey | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getSortierung | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSortierung | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getTabelle | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setTabelle | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getText | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setText | |
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 | |
| 10 | #[ORM\Entity] |
| 11 | #[ORM\Table(name: 'TEXTLIST')] |
| 12 | #[ORM\Index(columns: ['sortierung'], name: 'SORTIERUNG_DESC_IDX')] |
| 13 | #[ORM\Index(columns: ['sortierung'], name: 'SORTIERUNG_IDX')] |
| 14 | class Textlist |
| 15 | { |
| 16 | #[ORM\Column(name: 'feld', type: Types::STRING, length: 31, nullable: true)] |
| 17 | private ?string $feld = null; |
| 18 | |
| 19 | #[ORM\Column(name: 'hotkey', type: Types::STRING, length: 1, nullable: true)] |
| 20 | private ?string $hotkey = 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\Column(name: 'sortierung', type: Types::INTEGER, nullable: true)] |
| 29 | private ?int $sortierung = null; |
| 30 | |
| 31 | #[ORM\Column(name: 'tabelle', type: Types::STRING, length: 31, nullable: true)] |
| 32 | private ?string $tabelle = null; |
| 33 | |
| 34 | #[ORM\Column(name: 'text', type: Types::STRING, length: 250, nullable: true)] |
| 35 | private ?string $text = null; |
| 36 | |
| 37 | public function getFeld(): ?string |
| 38 | { |
| 39 | return $this->feld; |
| 40 | } |
| 41 | |
| 42 | public function setFeld(?string $feld): self |
| 43 | { |
| 44 | $this->feld = $feld; |
| 45 | |
| 46 | return $this; |
| 47 | } |
| 48 | |
| 49 | public function getHotkey(): ?string |
| 50 | { |
| 51 | return $this->hotkey; |
| 52 | } |
| 53 | |
| 54 | public function setHotkey(?string $hotkey): self |
| 55 | { |
| 56 | $this->hotkey = $hotkey; |
| 57 | |
| 58 | return $this; |
| 59 | } |
| 60 | |
| 61 | public function getLfdnr(): ?int |
| 62 | { |
| 63 | return $this->lfdnr; |
| 64 | } |
| 65 | |
| 66 | public function getSortierung(): ?int |
| 67 | { |
| 68 | return $this->sortierung; |
| 69 | } |
| 70 | |
| 71 | public function setSortierung(?int $sortierung): self |
| 72 | { |
| 73 | $this->sortierung = $sortierung; |
| 74 | |
| 75 | return $this; |
| 76 | } |
| 77 | |
| 78 | public function getTabelle(): ?string |
| 79 | { |
| 80 | return $this->tabelle; |
| 81 | } |
| 82 | |
| 83 | public function setTabelle(?string $tabelle): self |
| 84 | { |
| 85 | $this->tabelle = $tabelle; |
| 86 | |
| 87 | return $this; |
| 88 | } |
| 89 | |
| 90 | public function getText(): ?string |
| 91 | { |
| 92 | return $this->text; |
| 93 | } |
| 94 | |
| 95 | public function setText(?string $text): self |
| 96 | { |
| 97 | $this->text = $text; |
| 98 | |
| 99 | return $this; |
| 100 | } |
| 101 | } |