Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
94.44% |
51 / 54 |
|
91.18% |
31 / 34 |
CRAP | |
0.00% |
0 / 1 |
| Texte | |
94.44% |
51 / 54 |
|
91.18% |
31 / 34 |
36.22 | |
0.00% |
0 / 1 |
| __toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getAnlagen | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setAnlagen | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getArchiv | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setArchiv | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getBemerkung | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBemerkung | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getBenutzer | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBenutzer | |
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 | |||
| getBezeichnung | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBezeichnung | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getFaq | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFaq | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getGueltigbis | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGueltigbis | |
75.00% |
3 / 4 |
|
0.00% |
0 / 1 |
2.06 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getNurlesen | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setNurlesen | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getOrdner | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setOrdner | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getPrivat | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setPrivat | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getTextformatiert | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setTextformatiert | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getTextunformatiert | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setTextunformatiert | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getVerwendet | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setVerwendet | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getVorlage | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setVorlage | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getZuletztverwendet | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setZuletztverwendet | |
75.00% |
3 / 4 |
|
0.00% |
0 / 1 |
2.06 | |||
| 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 | use Satag\AmicronEntityBundle\Traits\BlameableEntity; |
| 11 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 12 | |
| 13 | /** |
| 14 | * Reusable text blocks (Texte) mapping to TEXTE table. |
| 15 | */ |
| 16 | #[ORM\Entity] |
| 17 | #[ORM\Table(name: 'TEXTE')] |
| 18 | class Texte implements BlameableEntityInterface, \Stringable |
| 19 | { |
| 20 | use BlameableEntity; |
| 21 | |
| 22 | #[ORM\Column(name: 'anlagen', type: Types::TEXT, nullable: true)] |
| 23 | private ?string $anlagen = null; |
| 24 | |
| 25 | #[ORM\Column(name: 'archiv', type: Types::INTEGER, nullable: true)] |
| 26 | private ?int $archiv = null; |
| 27 | |
| 28 | #[ORM\Column(name: 'bemerkung', type: Types::TEXT, nullable: true)] |
| 29 | private ?string $bemerkung = null; |
| 30 | |
| 31 | #[ORM\ManyToOne(targetEntity: Benutzer::class)] |
| 32 | #[ORM\JoinColumn(name: 'benutzerlfdnr', referencedColumnName: 'lfdnr')] |
| 33 | private ?Benutzer $benutzer = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'betreff', type: Types::STRING, length: 255, nullable: true)] |
| 36 | private ?string $betreff = null; |
| 37 | |
| 38 | #[ORM\Column(name: 'bezeichnung', type: Types::STRING, length: 150, nullable: true)] |
| 39 | private ?string $bezeichnung = null; |
| 40 | |
| 41 | #[ORM\Column(name: 'faq', type: Types::STRING, length: 255, nullable: true)] |
| 42 | private ?string $faq = null; |
| 43 | |
| 44 | #[ORM\Column(name: 'gueltigbis', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 45 | private ?\DateTimeImmutable $gueltigbis = null; |
| 46 | |
| 47 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 48 | #[ORM\Id] |
| 49 | #[ORM\GeneratedValue(strategy: 'CUSTOM')] |
| 50 | #[ORM\CustomIdGenerator(class: IdGeneratorLfdnr::class)] |
| 51 | private ?int $lfdnr = null; |
| 52 | |
| 53 | #[ORM\Column(name: 'nurlesen', type: Types::STRING, length: 1, nullable: true)] |
| 54 | private ?string $nurlesen = null; |
| 55 | |
| 56 | #[ORM\Column(name: 'ordner', type: Types::STRING, length: 300, nullable: true)] |
| 57 | private ?string $ordner = null; |
| 58 | |
| 59 | #[ORM\Column(name: 'privat', type: Types::STRING, length: 1, nullable: true)] |
| 60 | private ?string $privat = null; |
| 61 | |
| 62 | #[ORM\Column(name: 'textformatiert', type: Types::TEXT, nullable: true)] |
| 63 | private ?string $textformatiert = null; |
| 64 | |
| 65 | #[ORM\Column(name: 'textunformatiert', type: Types::TEXT, nullable: true)] |
| 66 | private ?string $textunformatiert = null; |
| 67 | |
| 68 | #[ORM\Column(name: 'verwendet', type: Types::INTEGER, nullable: true)] |
| 69 | private ?int $verwendet = null; |
| 70 | |
| 71 | #[ORM\Column(name: 'vorlage', type: Types::INTEGER, nullable: true)] |
| 72 | private ?int $vorlage = null; |
| 73 | |
| 74 | #[ORM\Column(name: 'zuletztverwendet', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 75 | private ?\DateTimeImmutable $zuletztverwendet = null; |
| 76 | |
| 77 | public function __toString(): string |
| 78 | { |
| 79 | return \sprintf('\\\\Texte:%s (%s)', $this->lfdnr, $this->bezeichnung); |
| 80 | } |
| 81 | |
| 82 | public function getAnlagen(): ?string |
| 83 | { |
| 84 | return $this->anlagen; |
| 85 | } |
| 86 | |
| 87 | public function setAnlagen(?string $v): static |
| 88 | { |
| 89 | $this->anlagen = $v; |
| 90 | |
| 91 | return $this; |
| 92 | } |
| 93 | |
| 94 | public function getArchiv(): ?int |
| 95 | { |
| 96 | return $this->archiv; |
| 97 | } |
| 98 | |
| 99 | public function setArchiv(?int $v): static |
| 100 | { |
| 101 | $this->archiv = $v; |
| 102 | |
| 103 | return $this; |
| 104 | } |
| 105 | |
| 106 | public function getBemerkung(): ?string |
| 107 | { |
| 108 | return $this->bemerkung; |
| 109 | } |
| 110 | |
| 111 | public function setBemerkung(?string $v): static |
| 112 | { |
| 113 | $this->bemerkung = $v; |
| 114 | |
| 115 | return $this; |
| 116 | } |
| 117 | |
| 118 | public function getBenutzer(): ?Benutzer |
| 119 | { |
| 120 | return $this->benutzer; |
| 121 | } |
| 122 | |
| 123 | public function setBenutzer(?Benutzer $v): static |
| 124 | { |
| 125 | $this->benutzer = $v; |
| 126 | |
| 127 | return $this; |
| 128 | } |
| 129 | |
| 130 | public function getBetreff(): ?string |
| 131 | { |
| 132 | return $this->betreff; |
| 133 | } |
| 134 | |
| 135 | public function setBetreff(?string $v): static |
| 136 | { |
| 137 | $this->betreff = $v; |
| 138 | |
| 139 | return $this; |
| 140 | } |
| 141 | |
| 142 | public function getBezeichnung(): ?string |
| 143 | { |
| 144 | return $this->bezeichnung; |
| 145 | } |
| 146 | |
| 147 | public function setBezeichnung(?string $v): static |
| 148 | { |
| 149 | $this->bezeichnung = $v; |
| 150 | |
| 151 | return $this; |
| 152 | } |
| 153 | |
| 154 | public function getFaq(): ?string |
| 155 | { |
| 156 | return $this->faq; |
| 157 | } |
| 158 | |
| 159 | public function setFaq(?string $v): static |
| 160 | { |
| 161 | $this->faq = $v; |
| 162 | |
| 163 | return $this; |
| 164 | } |
| 165 | |
| 166 | public function getGueltigbis(): ?\DateTimeImmutable |
| 167 | { |
| 168 | return $this->gueltigbis; |
| 169 | } |
| 170 | |
| 171 | public function setGueltigbis(\DateTimeImmutable|\DateTime|null $dateTime): static |
| 172 | { |
| 173 | $this->gueltigbis = $dateTime instanceof \DateTime |
| 174 | ? \DateTimeImmutable::createFromMutable($dateTime) |
| 175 | : $dateTime; |
| 176 | |
| 177 | return $this; |
| 178 | } |
| 179 | |
| 180 | public function getLfdnr(): ?int |
| 181 | { |
| 182 | return $this->lfdnr; |
| 183 | } |
| 184 | |
| 185 | public function getNurlesen(): ?string |
| 186 | { |
| 187 | return $this->nurlesen; |
| 188 | } |
| 189 | |
| 190 | public function setNurlesen(?string $v): static |
| 191 | { |
| 192 | $this->nurlesen = $v; |
| 193 | |
| 194 | return $this; |
| 195 | } |
| 196 | |
| 197 | public function getOrdner(): ?string |
| 198 | { |
| 199 | return $this->ordner; |
| 200 | } |
| 201 | |
| 202 | public function setOrdner(?string $v): static |
| 203 | { |
| 204 | $this->ordner = $v; |
| 205 | |
| 206 | return $this; |
| 207 | } |
| 208 | |
| 209 | public function getPrivat(): ?string |
| 210 | { |
| 211 | return $this->privat; |
| 212 | } |
| 213 | |
| 214 | public function setPrivat(?string $v): static |
| 215 | { |
| 216 | $this->privat = $v; |
| 217 | |
| 218 | return $this; |
| 219 | } |
| 220 | |
| 221 | public function getTextformatiert(): ?string |
| 222 | { |
| 223 | return $this->textformatiert; |
| 224 | } |
| 225 | |
| 226 | public function setTextformatiert(?string $v): static |
| 227 | { |
| 228 | $this->textformatiert = $v; |
| 229 | |
| 230 | return $this; |
| 231 | } |
| 232 | |
| 233 | public function getTextunformatiert(): ?string |
| 234 | { |
| 235 | return $this->textunformatiert; |
| 236 | } |
| 237 | |
| 238 | public function setTextunformatiert(?string $v): static |
| 239 | { |
| 240 | $this->textunformatiert = $v; |
| 241 | |
| 242 | return $this; |
| 243 | } |
| 244 | |
| 245 | public function getVerwendet(): ?int |
| 246 | { |
| 247 | return $this->verwendet; |
| 248 | } |
| 249 | |
| 250 | public function setVerwendet(?int $v): static |
| 251 | { |
| 252 | $this->verwendet = $v; |
| 253 | |
| 254 | return $this; |
| 255 | } |
| 256 | |
| 257 | public function getVorlage(): ?int |
| 258 | { |
| 259 | return $this->vorlage; |
| 260 | } |
| 261 | |
| 262 | public function setVorlage(?int $v): static |
| 263 | { |
| 264 | $this->vorlage = $v; |
| 265 | |
| 266 | return $this; |
| 267 | } |
| 268 | |
| 269 | public function getZuletztverwendet(): ?\DateTimeImmutable |
| 270 | { |
| 271 | return $this->zuletztverwendet; |
| 272 | } |
| 273 | |
| 274 | public function setZuletztverwendet(\DateTimeImmutable|\DateTime|null $dateTime): static |
| 275 | { |
| 276 | $this->zuletztverwendet = $dateTime instanceof \DateTime |
| 277 | ? \DateTimeImmutable::createFromMutable($dateTime) |
| 278 | : $dateTime; |
| 279 | |
| 280 | return $this; |
| 281 | } |
| 282 | } |