Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
| Suchschluessel | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getSuchbegriff | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSuchbegriff | |
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: 'SUCHSCHLUESSEL')] |
| 12 | #[ORM\UniqueConstraint(name: 'SUCHSCHLUESSEL_UK', columns: ['suchbegriff'])] |
| 13 | class Suchschluessel |
| 14 | { |
| 15 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 16 | #[ORM\Id] |
| 17 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 18 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 19 | public private(set) ?int $lfdnr = null; |
| 20 | |
| 21 | #[ORM\Column(name: 'suchbegriff', type: Types::STRING, length: 80, nullable: false)] |
| 22 | private string $suchbegriff; |
| 23 | |
| 24 | public function getLfdnr(): ?int |
| 25 | { |
| 26 | return $this->lfdnr; |
| 27 | } |
| 28 | |
| 29 | public function getSuchbegriff(): string |
| 30 | { |
| 31 | return $this->suchbegriff; |
| 32 | } |
| 33 | |
| 34 | public function setSuchbegriff(string $suchbegriff): self |
| 35 | { |
| 36 | $this->suchbegriff = $suchbegriff; |
| 37 | |
| 38 | return $this; |
| 39 | } |
| 40 | } |