Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
16 / 16 |
|
100.00% |
11 / 11 |
CRAP | |
100.00% |
1 / 1 |
| Shortmessages | |
100.00% |
16 / 16 |
|
100.00% |
11 / 11 |
11 | |
100.00% |
1 / 1 |
| getBenutzerlfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBenutzerlfdnr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getBetreff | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBetreff | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getGelesen | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGelesen | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getOptionen | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setOptionen | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getText | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setText | |
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 | use Satag\AmicronEntityBundle\Traits\BlameableEntity; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 11 | |
| 12 | #[ORM\Entity] |
| 13 | #[ORM\Table(name: 'SHORTMESSAGES')] |
| 14 | #[ORM\Index(columns: ['benutzerlfdnr'], name: 'SHORTMESSAGES_BENUTZERLFDNR_FK')] |
| 15 | class Shortmessages implements BlameableEntityInterface |
| 16 | { |
| 17 | use BlameableEntity; |
| 18 | |
| 19 | #[ORM\ManyToOne(targetEntity: Benutzer::class)] |
| 20 | #[ORM\JoinColumn(name: 'benutzerlfdnr', referencedColumnName: 'lfdnr')] |
| 21 | private ?Benutzer $benutzerlfdnr = null; |
| 22 | |
| 23 | #[ORM\Column(name: 'betreff', type: Types::STRING, length: 60, nullable: true)] |
| 24 | private ?string $betreff = null; |
| 25 | |
| 26 | #[ORM\Column(name: 'gelesen', type: Types::INTEGER, nullable: true)] |
| 27 | private ?int $gelesen = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 30 | #[ORM\Id] |
| 31 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 32 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 33 | public private(set) ?int $lfdnr = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'optionen', type: Types::INTEGER, nullable: true)] |
| 36 | private ?int $optionen = null; |
| 37 | |
| 38 | #[ORM\Column(name: 'text', type: Types::TEXT, nullable: true)] |
| 39 | private ?string $text = null; |
| 40 | |
| 41 | public function getBenutzerlfdnr(): ?Benutzer |
| 42 | { |
| 43 | return $this->benutzerlfdnr; |
| 44 | } |
| 45 | |
| 46 | public function setBenutzerlfdnr(?Benutzer $benutzerlfdnr): self |
| 47 | { |
| 48 | $this->benutzerlfdnr = $benutzerlfdnr; |
| 49 | |
| 50 | return $this; |
| 51 | } |
| 52 | |
| 53 | public function getBetreff(): ?string |
| 54 | { |
| 55 | return $this->betreff; |
| 56 | } |
| 57 | |
| 58 | public function setBetreff(?string $betreff): self |
| 59 | { |
| 60 | $this->betreff = $betreff; |
| 61 | |
| 62 | return $this; |
| 63 | } |
| 64 | |
| 65 | public function getGelesen(): ?int |
| 66 | { |
| 67 | return $this->gelesen; |
| 68 | } |
| 69 | |
| 70 | public function setGelesen(?int $gelesen): self |
| 71 | { |
| 72 | $this->gelesen = $gelesen; |
| 73 | |
| 74 | return $this; |
| 75 | } |
| 76 | |
| 77 | public function getLfdnr(): ?int |
| 78 | { |
| 79 | return $this->lfdnr; |
| 80 | } |
| 81 | |
| 82 | public function getOptionen(): ?int |
| 83 | { |
| 84 | return $this->optionen; |
| 85 | } |
| 86 | |
| 87 | public function setOptionen(?int $optionen): self |
| 88 | { |
| 89 | $this->optionen = $optionen; |
| 90 | |
| 91 | return $this; |
| 92 | } |
| 93 | |
| 94 | public function getText(): ?string |
| 95 | { |
| 96 | return $this->text; |
| 97 | } |
| 98 | |
| 99 | public function setText(?string $text): self |
| 100 | { |
| 101 | $this->text = $text; |
| 102 | |
| 103 | return $this; |
| 104 | } |
| 105 | } |