Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
87.50% covered (warning)
87.50%
7 / 8
83.33% covered (warning)
83.33%
5 / 6
CRAP
0.00% covered (danger)
0.00%
0 / 1
Statauswahl
87.50% covered (warning)
87.50%
7 / 8
83.33% covered (warning)
83.33%
5 / 6
6.07
0.00% covered (danger)
0.00%
0 / 1
 __toString
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getArt
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setArt
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getBenutzerkuerzel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBenutzerkuerzel
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getLfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Satag\AmicronEntityBundle\Entity;
6
7use Doctrine\DBAL\Types\Types;
8use Doctrine\ORM\Mapping as ORM;
9use 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')]
17class 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}