Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
7 / 7 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
1 / 1 |
| Branrede | |
100.00% |
7 / 7 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
1 / 1 |
| getAnrede | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setAnrede | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getBriefanrede | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBriefanrede | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
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: 'BRANREDE')] |
| 12 | #[ORM\UniqueConstraint(name: 'BRANREDE_ANREDE_UK', columns: ['anrede'])] |
| 13 | class Branrede |
| 14 | { |
| 15 | #[ORM\Column(name: 'anrede', type: Types::STRING, length: 25, nullable: false)] |
| 16 | public string $anrede; |
| 17 | |
| 18 | #[ORM\Column(name: 'briefanrede', type: Types::STRING, length: 60, nullable: true)] |
| 19 | public ?string $briefanrede = null; |
| 20 | |
| 21 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 22 | #[ORM\Id] |
| 23 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 24 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 25 | private ?int $lfdnr = null; |
| 26 | |
| 27 | public function getAnrede(): string |
| 28 | { |
| 29 | return $this->anrede; |
| 30 | } |
| 31 | |
| 32 | public function setAnrede(string $anrede): self |
| 33 | { |
| 34 | $this->anrede = $anrede; |
| 35 | |
| 36 | return $this; |
| 37 | } |
| 38 | |
| 39 | public function getBriefanrede(): ?string |
| 40 | { |
| 41 | return $this->briefanrede; |
| 42 | } |
| 43 | |
| 44 | public function setBriefanrede(?string $briefanrede): self |
| 45 | { |
| 46 | $this->briefanrede = $briefanrede; |
| 47 | |
| 48 | return $this; |
| 49 | } |
| 50 | |
| 51 | public function getLfdnr(): ?int |
| 52 | { |
| 53 | return $this->lfdnr; |
| 54 | } |
| 55 | } |