Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
10 / 10 |
|
100.00% |
7 / 7 |
CRAP | |
100.00% |
1 / 1 |
| Setupbin | |
100.00% |
10 / 10 |
|
100.00% |
7 / 7 |
7 | |
100.00% |
1 / 1 |
| getBenutzerkuerzel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBenutzerkuerzel | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getBin | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBin | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getSchluessel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSchluessel | |
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: 'SETUPBIN')] |
| 12 | #[ORM\Index(columns: ['benutzerkuerzel', 'schluessel'], name: 'SETUPBIN_BS_IDX')] |
| 13 | #[ORM\UniqueConstraint(name: 'SETUPBIN_UK', columns: ['benutzerkuerzel', 'schluessel'])] |
| 14 | class Setupbin extends AbstractAmicronEntity |
| 15 | { |
| 16 | #[ORM\Column(name: 'benutzerkuerzel', type: Types::STRING, length: 3, nullable: false)] |
| 17 | private string $benutzerkuerzel; |
| 18 | |
| 19 | #[ORM\Column(name: 'bin', type: 'blob_base64', nullable: true)] |
| 20 | private ?string $bin = 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: 'schluessel', type: Types::STRING, length: 50, nullable: false)] |
| 29 | private string $schluessel; |
| 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 getBin(): ?string |
| 44 | { |
| 45 | return $this->bin; |
| 46 | } |
| 47 | |
| 48 | public function setBin(?string $bin): self |
| 49 | { |
| 50 | $this->bin = $bin; |
| 51 | |
| 52 | return $this; |
| 53 | } |
| 54 | |
| 55 | public function getLfdnr(): ?int |
| 56 | { |
| 57 | return $this->lfdnr; |
| 58 | } |
| 59 | |
| 60 | public function getSchluessel(): string |
| 61 | { |
| 62 | return $this->schluessel; |
| 63 | } |
| 64 | |
| 65 | public function setSchluessel(string $schluessel): self |
| 66 | { |
| 67 | $this->schluessel = $schluessel; |
| 68 | |
| 69 | return $this; |
| 70 | } |
| 71 | } |