Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
95.71% |
67 / 70 |
|
93.02% |
40 / 43 |
CRAP | |
0.00% |
0 / 1 |
| Fibu | |
95.71% |
67 / 70 |
|
93.02% |
40 / 43 |
46 | |
0.00% |
0 / 1 |
| getAuftraglfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setAuftraglfdnr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getBeleg | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBeleg | |
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 | |||
| getBrutto | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBrutto | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getBuchart | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBuchart | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getBuchungstext | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBuchungstext | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getDatum | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setDatum | |
75.00% |
3 / 4 |
|
0.00% |
0 / 1 |
2.06 | |||
| getFaellig | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFaellig | |
75.00% |
3 / 4 |
|
0.00% |
0 / 1 |
2.06 | |||
| getFehlertext | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFehlertext | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getFibutransam | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFibutransam | |
75.00% |
3 / 4 |
|
0.00% |
0 / 1 |
2.06 | |||
| getFibutransvon | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFibutransvon | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getHabenkto | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setHabenkto | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getHabenktoart | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setHabenktoart | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getNetto | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setNetto | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSkonto | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSkonto | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSkontoprozent | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSkontoprozent | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSollkto | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSollkto | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSollktoart | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSollktoart | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSteuerbetrag | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSteuerbetrag | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSteuerprozent | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSteuerprozent | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSteuersatz | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSteuersatz | |
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: 'FIBU')] |
| 14 | #[ORM\Index(columns: ['auftraglfdnr'], name: 'FIBU_AUFTRAGLFDNR_FK')] |
| 15 | class Fibu implements BlameableEntityInterface |
| 16 | { |
| 17 | use BlameableEntity; |
| 18 | |
| 19 | #[ORM\ManyToOne(targetEntity: Auftrag::class)] |
| 20 | #[ORM\JoinColumn(name: 'auftraglfdnr', referencedColumnName: 'lfdnr')] |
| 21 | private ?Auftrag $auftraglfdnr = null; |
| 22 | |
| 23 | #[ORM\Column(name: 'beleg', type: Types::STRING, length: 10, nullable: true)] |
| 24 | private ?string $beleg = null; |
| 25 | |
| 26 | #[ORM\Column(name: 'bemerkung', type: Types::TEXT, nullable: true)] |
| 27 | private ?string $bemerkung = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'brutto', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 30 | private ?string $brutto = null; |
| 31 | |
| 32 | #[ORM\Column(name: 'buchart', type: Types::STRING, length: 15, nullable: true)] |
| 33 | private ?string $buchart = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'buchungstext', type: Types::STRING, length: 60, nullable: true)] |
| 36 | private ?string $buchungstext = null; |
| 37 | |
| 38 | #[ORM\Column(name: 'datum', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 39 | private ?\DateTimeImmutable $datum = null; |
| 40 | |
| 41 | #[ORM\Column(name: 'faellig', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 42 | private ?\DateTimeImmutable $faellig = null; |
| 43 | |
| 44 | #[ORM\Column(name: 'fehlertext', type: Types::TEXT, nullable: true)] |
| 45 | private ?string $fehlertext = null; |
| 46 | |
| 47 | #[ORM\Column(name: 'fibutransam', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 48 | private ?\DateTimeImmutable $fibutransam = null; |
| 49 | |
| 50 | #[ORM\Column(name: 'fibutransvon', type: Types::STRING, length: 3, nullable: true)] |
| 51 | private ?string $fibutransvon = null; |
| 52 | |
| 53 | #[ORM\Column(name: 'habenkto', type: Types::STRING, length: 8, nullable: true)] |
| 54 | private ?string $habenkto = null; |
| 55 | |
| 56 | #[ORM\Column(name: 'habenktoart', type: Types::STRING, length: 2, nullable: true)] |
| 57 | private ?string $habenktoart = null; |
| 58 | |
| 59 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 60 | #[ORM\Id] |
| 61 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 62 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 63 | public private(set) ?int $lfdnr = null; |
| 64 | |
| 65 | #[ORM\Column(name: 'netto', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 66 | private ?string $netto = null; |
| 67 | |
| 68 | #[ORM\Column(name: 'skonto', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 69 | private ?string $skonto = null; |
| 70 | |
| 71 | #[ORM\Column(name: 'skontoprozent', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 72 | private ?string $skontoprozent = null; |
| 73 | |
| 74 | #[ORM\Column(name: 'sollkto', type: Types::STRING, length: 8, nullable: true)] |
| 75 | private ?string $sollkto = null; |
| 76 | |
| 77 | #[ORM\Column(name: 'sollktoart', type: Types::STRING, length: 2, nullable: true)] |
| 78 | private ?string $sollktoart = null; |
| 79 | |
| 80 | #[ORM\Column(name: 'steuerbetrag', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 81 | private ?string $steuerbetrag = null; |
| 82 | |
| 83 | #[ORM\Column(name: 'steuerprozent', type: 'amicron_decimal', precision: 15, scale: 6, nullable: true)] |
| 84 | private ?string $steuerprozent = null; |
| 85 | |
| 86 | #[ORM\Column(name: 'steuersatz', type: Types::STRING, length: 2, nullable: true)] |
| 87 | private ?string $steuersatz = null; |
| 88 | |
| 89 | public function getAuftraglfdnr(): ?Auftrag |
| 90 | { |
| 91 | return $this->auftraglfdnr; |
| 92 | } |
| 93 | |
| 94 | public function setAuftraglfdnr(?Auftrag $auftraglfdnr): self |
| 95 | { |
| 96 | $this->auftraglfdnr = $auftraglfdnr; |
| 97 | |
| 98 | return $this; |
| 99 | } |
| 100 | |
| 101 | public function getBeleg(): ?string |
| 102 | { |
| 103 | return $this->beleg; |
| 104 | } |
| 105 | |
| 106 | public function setBeleg(?string $beleg): self |
| 107 | { |
| 108 | $this->beleg = $beleg; |
| 109 | |
| 110 | return $this; |
| 111 | } |
| 112 | |
| 113 | public function getBemerkung(): ?string |
| 114 | { |
| 115 | return $this->bemerkung; |
| 116 | } |
| 117 | |
| 118 | public function setBemerkung(?string $bemerkung): self |
| 119 | { |
| 120 | $this->bemerkung = $bemerkung; |
| 121 | |
| 122 | return $this; |
| 123 | } |
| 124 | |
| 125 | public function getBrutto(): ?string |
| 126 | { |
| 127 | return $this->brutto; |
| 128 | } |
| 129 | |
| 130 | public function setBrutto(?string $brutto): self |
| 131 | { |
| 132 | $this->brutto = $brutto; |
| 133 | |
| 134 | return $this; |
| 135 | } |
| 136 | |
| 137 | public function getBuchart(): ?string |
| 138 | { |
| 139 | return $this->buchart; |
| 140 | } |
| 141 | |
| 142 | public function setBuchart(?string $buchart): self |
| 143 | { |
| 144 | $this->buchart = $buchart; |
| 145 | |
| 146 | return $this; |
| 147 | } |
| 148 | |
| 149 | public function getBuchungstext(): ?string |
| 150 | { |
| 151 | return $this->buchungstext; |
| 152 | } |
| 153 | |
| 154 | public function setBuchungstext(?string $buchungstext): self |
| 155 | { |
| 156 | $this->buchungstext = $buchungstext; |
| 157 | |
| 158 | return $this; |
| 159 | } |
| 160 | |
| 161 | public function getDatum(): ?\DateTimeImmutable |
| 162 | { |
| 163 | return $this->datum; |
| 164 | } |
| 165 | |
| 166 | public function setDatum(\DateTimeImmutable|\DateTime|null $datum): self |
| 167 | { |
| 168 | $this->datum = $datum instanceof \DateTime |
| 169 | ? \DateTimeImmutable::createFromMutable($datum) |
| 170 | : $datum; |
| 171 | |
| 172 | return $this; |
| 173 | } |
| 174 | |
| 175 | public function getFaellig(): ?\DateTimeImmutable |
| 176 | { |
| 177 | return $this->faellig; |
| 178 | } |
| 179 | |
| 180 | public function setFaellig(\DateTimeImmutable|\DateTime|null $faellig): self |
| 181 | { |
| 182 | $this->faellig = $faellig instanceof \DateTime |
| 183 | ? \DateTimeImmutable::createFromMutable($faellig) |
| 184 | : $faellig; |
| 185 | |
| 186 | return $this; |
| 187 | } |
| 188 | |
| 189 | public function getFehlertext(): ?string |
| 190 | { |
| 191 | return $this->fehlertext; |
| 192 | } |
| 193 | |
| 194 | public function setFehlertext(?string $fehlertext): self |
| 195 | { |
| 196 | $this->fehlertext = $fehlertext; |
| 197 | |
| 198 | return $this; |
| 199 | } |
| 200 | |
| 201 | public function getFibutransam(): ?\DateTimeImmutable |
| 202 | { |
| 203 | return $this->fibutransam; |
| 204 | } |
| 205 | |
| 206 | public function setFibutransam(\DateTimeImmutable|\DateTime|null $fibutransam): self |
| 207 | { |
| 208 | $this->fibutransam = $fibutransam instanceof \DateTime |
| 209 | ? \DateTimeImmutable::createFromMutable($fibutransam) |
| 210 | : $fibutransam; |
| 211 | |
| 212 | return $this; |
| 213 | } |
| 214 | |
| 215 | public function getFibutransvon(): ?string |
| 216 | { |
| 217 | return $this->fibutransvon; |
| 218 | } |
| 219 | |
| 220 | public function setFibutransvon(?string $fibutransvon): self |
| 221 | { |
| 222 | $this->fibutransvon = $fibutransvon; |
| 223 | |
| 224 | return $this; |
| 225 | } |
| 226 | |
| 227 | public function getHabenkto(): ?string |
| 228 | { |
| 229 | return $this->habenkto; |
| 230 | } |
| 231 | |
| 232 | public function setHabenkto(?string $habenkto): self |
| 233 | { |
| 234 | $this->habenkto = $habenkto; |
| 235 | |
| 236 | return $this; |
| 237 | } |
| 238 | |
| 239 | public function getHabenktoart(): ?string |
| 240 | { |
| 241 | return $this->habenktoart; |
| 242 | } |
| 243 | |
| 244 | public function setHabenktoart(?string $habenktoart): self |
| 245 | { |
| 246 | $this->habenktoart = $habenktoart; |
| 247 | |
| 248 | return $this; |
| 249 | } |
| 250 | |
| 251 | public function getLfdnr(): ?int |
| 252 | { |
| 253 | return $this->lfdnr; |
| 254 | } |
| 255 | |
| 256 | public function getNetto(): ?string |
| 257 | { |
| 258 | return $this->netto; |
| 259 | } |
| 260 | |
| 261 | public function setNetto(?string $netto): self |
| 262 | { |
| 263 | $this->netto = $netto; |
| 264 | |
| 265 | return $this; |
| 266 | } |
| 267 | |
| 268 | public function getSkonto(): ?string |
| 269 | { |
| 270 | return $this->skonto; |
| 271 | } |
| 272 | |
| 273 | public function setSkonto(?string $skonto): self |
| 274 | { |
| 275 | $this->skonto = $skonto; |
| 276 | |
| 277 | return $this; |
| 278 | } |
| 279 | |
| 280 | public function getSkontoprozent(): ?string |
| 281 | { |
| 282 | return $this->skontoprozent; |
| 283 | } |
| 284 | |
| 285 | public function setSkontoprozent(?string $skontoprozent): self |
| 286 | { |
| 287 | $this->skontoprozent = $skontoprozent; |
| 288 | |
| 289 | return $this; |
| 290 | } |
| 291 | |
| 292 | public function getSollkto(): ?string |
| 293 | { |
| 294 | return $this->sollkto; |
| 295 | } |
| 296 | |
| 297 | public function setSollkto(?string $sollkto): self |
| 298 | { |
| 299 | $this->sollkto = $sollkto; |
| 300 | |
| 301 | return $this; |
| 302 | } |
| 303 | |
| 304 | public function getSollktoart(): ?string |
| 305 | { |
| 306 | return $this->sollktoart; |
| 307 | } |
| 308 | |
| 309 | public function setSollktoart(?string $sollktoart): self |
| 310 | { |
| 311 | $this->sollktoart = $sollktoart; |
| 312 | |
| 313 | return $this; |
| 314 | } |
| 315 | |
| 316 | public function getSteuerbetrag(): ?string |
| 317 | { |
| 318 | return $this->steuerbetrag; |
| 319 | } |
| 320 | |
| 321 | public function setSteuerbetrag(?string $steuerbetrag): self |
| 322 | { |
| 323 | $this->steuerbetrag = $steuerbetrag; |
| 324 | |
| 325 | return $this; |
| 326 | } |
| 327 | |
| 328 | public function getSteuerprozent(): ?string |
| 329 | { |
| 330 | return $this->steuerprozent; |
| 331 | } |
| 332 | |
| 333 | public function setSteuerprozent(?string $steuerprozent): self |
| 334 | { |
| 335 | $this->steuerprozent = $steuerprozent; |
| 336 | |
| 337 | return $this; |
| 338 | } |
| 339 | |
| 340 | public function getSteuersatz(): ?string |
| 341 | { |
| 342 | return $this->steuersatz; |
| 343 | } |
| 344 | |
| 345 | public function setSteuersatz(?string $steuersatz): self |
| 346 | { |
| 347 | $this->steuersatz = $steuersatz; |
| 348 | |
| 349 | return $this; |
| 350 | } |
| 351 | } |