Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 10 |
|
0.00% |
0 / 7 |
CRAP | |
0.00% |
0 / 1 |
| Setup | |
0.00% |
0 / 10 |
|
0.00% |
0 / 7 |
56 | |
0.00% |
0 / 1 |
| getBenutzerkuerzel | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBenutzerkuerzel | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getSchluessel | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSchluessel | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getWert | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setWert | |
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 | #[ORM\Entity] |
| 11 | #[ORM\Table(name: 'SETUP')] |
| 12 | #[ORM\Index(columns: ['benutzerkuerzel'], name: 'SETUP_BK_IDX')] |
| 13 | #[ORM\UniqueConstraint(name: 'SETUP_UK', columns: ['benutzerkuerzel', 'schluessel'])] |
| 14 | class Setup extends AbstractAmicronEntity |
| 15 | { |
| 16 | #[ORM\Column(name: 'benutzerkuerzel', type: Types::STRING, length: 3, nullable: false)] |
| 17 | private string $benutzerkuerzel; |
| 18 | |
| 19 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 20 | #[ORM\Id] |
| 21 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 22 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 23 | public private(set) ?int $lfdnr = null; |
| 24 | |
| 25 | #[ORM\Column(name: 'schluessel', type: Types::STRING, length: 50, nullable: false)] |
| 26 | private string $schluessel; |
| 27 | |
| 28 | #[ORM\Column(name: 'wert', type: Types::STRING, length: 150, nullable: true)] |
| 29 | private ?string $wert = null; |
| 30 | |
| 31 | public function getBenutzerkuerzel(): string |
| 32 | { |
| 33 | return $this->benutzerkuerzel; |
| 34 | } |
| 35 | |
| 36 | public function setBenutzerkuerzel(string $benutzerkuerzel): self |
| 37 | { |
| 38 | $this->benutzerkuerzel = $benutzerkuerzel; |
| 39 | |
| 40 | return $this; |
| 41 | } |
| 42 | |
| 43 | public function getLfdnr(): ?int |
| 44 | { |
| 45 | return $this->lfdnr; |
| 46 | } |
| 47 | |
| 48 | public function getSchluessel(): string |
| 49 | { |
| 50 | return $this->schluessel; |
| 51 | } |
| 52 | |
| 53 | public function setSchluessel(string $schluessel): self |
| 54 | { |
| 55 | $this->schluessel = $schluessel; |
| 56 | |
| 57 | return $this; |
| 58 | } |
| 59 | |
| 60 | public function getWert(): ?string |
| 61 | { |
| 62 | return $this->wert; |
| 63 | } |
| 64 | |
| 65 | public function setWert(?string $wert): self |
| 66 | { |
| 67 | $this->wert = $wert; |
| 68 | |
| 69 | return $this; |
| 70 | } |
| 71 | } |