Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 1 |
| Statauswahl | |
0.00% |
0 / 8 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 1 |
| __toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getArt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setArt | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 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 | |||
| 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 | use Satag\AmicronEntityBundle\Doctrine\IdGeneratorLfdnr; |
| 10 | |
| 11 | /** |
| 12 | * Statistics selection criteria (Statauswahl) mapping to STATAUSWAHL. |
| 13 | * Stores saved report/statistics filter configurations. |
| 14 | */ |
| 15 | #[ORM\Entity] |
| 16 | #[ORM\Table(name: 'STATAUSWAHL')] |
| 17 | class Statauswahl implements \Stringable |
| 18 | { |
| 19 | #[ORM\Column(name: 'art', type: Types::STRING, length: 80, nullable: true)] |
| 20 | private ?string $art = null; |
| 21 | |
| 22 | #[ORM\Column(name: 'benutzerkuerzel', type: Types::STRING, length: 3, nullable: true)] |
| 23 | private ?string $benutzerkuerzel = null; |
| 24 | |
| 25 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 26 | #[ORM\Id] |
| 27 | #[ORM\GeneratedValue(strategy: 'CUSTOM')] |
| 28 | #[ORM\CustomIdGenerator(class: IdGeneratorLfdnr::class)] |
| 29 | private ?int $lfdnr = null; |
| 30 | |
| 31 | public function __toString(): string |
| 32 | { |
| 33 | return \sprintf('\\\\Statauswahl:%s (%s)', $this->lfdnr, $this->art); |
| 34 | } |
| 35 | |
| 36 | public function getArt(): ?string |
| 37 | { |
| 38 | return $this->art; |
| 39 | } |
| 40 | |
| 41 | public function setArt(?string $art): self |
| 42 | { |
| 43 | $this->art = $art; |
| 44 | |
| 45 | return $this; |
| 46 | } |
| 47 | |
| 48 | public function getBenutzerkuerzel(): ?string |
| 49 | { |
| 50 | return $this->benutzerkuerzel; |
| 51 | } |
| 52 | |
| 53 | public function setBenutzerkuerzel(?string $benutzerkuerzel): self |
| 54 | { |
| 55 | $this->benutzerkuerzel = $benutzerkuerzel; |
| 56 | |
| 57 | return $this; |
| 58 | } |
| 59 | |
| 60 | public function getLfdnr(): ?int |
| 61 | { |
| 62 | return $this->lfdnr; |
| 63 | } |
| 64 | } |