Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
42 / 42 |
|
100.00% |
24 / 24 |
CRAP | |
100.00% |
1 / 1 |
| AuftragStatusTrait | |
100.00% |
42 / 42 |
|
100.00% |
24 / 24 |
27 | |
100.00% |
1 / 1 |
| getDruckstatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setDruckstatus | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSendungsnummern | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSendungsnummern | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getShopbestellnummer | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setShopbestellnummer | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getGemailtan | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGemailtan | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getGebuchtam | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGebuchtam | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
2 | |||
| getGebuchtvon | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setGebuchtvon | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| isKorrektur | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setKorrektur | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getUstidnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setUstidnr | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getSendungvon | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSendungvon | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getEmail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setEmail | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLeistungszeitraumvon | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLeistungszeitraumvon | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
2 | |||
| getLeistungszeitraumbis | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLeistungszeitraumbis | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Satag\AmicronEntityBundle\Traits; |
| 6 | |
| 7 | use Doctrine\DBAL\Types\Types; |
| 8 | use Doctrine\ORM\Mapping as ORM; |
| 9 | |
| 10 | /** |
| 11 | * Shared status fields for Auftrag* entities (Auftragkunde, Auftraglieferant, |
| 12 | * ImportAuftragkunde, ImportAuftraglieferant). |
| 13 | * |
| 14 | * Fields: DRUCKSTATUS, SENDUNGSNUMMERN, SHOPBESTELLNUMMER, GEMAILTAN, |
| 15 | * GEBUCHTAM, GEBUCHTVON, KORREKTUR, USTIDNR, SENDUNGVON, EMAIL, |
| 16 | * LEISTUNGSZEITRAUMVON, LEISTUNGSZEITRAUMBIS |
| 17 | * |
| 18 | * @see FR-006 |
| 19 | */ |
| 20 | trait AuftragStatusTrait |
| 21 | { |
| 22 | #[ORM\Column(name: 'druckstatus', type: Types::INTEGER, nullable: true)] |
| 23 | protected ?int $druckstatus = null; |
| 24 | |
| 25 | #[ORM\Column(name: 'sendungsnummern', type: Types::TEXT, nullable: true)] |
| 26 | protected ?string $sendungsnummern = null; |
| 27 | |
| 28 | #[ORM\Column(name: 'shopbestellnummer', type: Types::STRING, length: 40, nullable: true)] |
| 29 | protected ?string $shopbestellnummer = null; |
| 30 | |
| 31 | #[ORM\Column(name: 'gemailtan', type: Types::STRING, length: 80, nullable: true)] |
| 32 | protected ?string $gemailtan = null; |
| 33 | |
| 34 | #[ORM\Column(name: 'gebuchtam', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 35 | protected ?\DateTimeImmutable $gebuchtam = null; |
| 36 | |
| 37 | #[ORM\Column(name: 'gebuchtvon', type: Types::STRING, length: 3, nullable: true)] |
| 38 | protected ?string $gebuchtvon = null; |
| 39 | |
| 40 | #[ORM\Column(name: 'korrektur', type: 'amicron_boolean', nullable: true)] |
| 41 | protected ?bool $korrektur = null; |
| 42 | |
| 43 | #[ORM\Column(name: 'ustidnr', type: Types::STRING, length: 40, nullable: true)] |
| 44 | protected ?string $ustidnr = null; |
| 45 | |
| 46 | #[ORM\Column(name: 'sendungvon', type: Types::STRING, length: 3, nullable: true)] |
| 47 | protected ?string $sendungvon = null; |
| 48 | |
| 49 | #[ORM\Column(name: 'email', type: Types::STRING, length: 80, nullable: true)] |
| 50 | protected ?string $email = null; |
| 51 | |
| 52 | #[ORM\Column(name: 'leistungszeitraumvon', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 53 | protected ?\DateTimeImmutable $leistungszeitraumvon = null; |
| 54 | |
| 55 | #[ORM\Column(name: 'leistungszeitraumbis', type: Types::DATETIME_IMMUTABLE, nullable: true)] |
| 56 | protected ?\DateTimeImmutable $leistungszeitraumbis = null; |
| 57 | |
| 58 | public function getDruckstatus(): ?int |
| 59 | { |
| 60 | return $this->druckstatus; |
| 61 | } |
| 62 | |
| 63 | public function setDruckstatus(?int $druckstatus): static |
| 64 | { |
| 65 | $this->druckstatus = $druckstatus; |
| 66 | |
| 67 | return $this; |
| 68 | } |
| 69 | |
| 70 | public function getSendungsnummern(): ?string |
| 71 | { |
| 72 | return $this->sendungsnummern; |
| 73 | } |
| 74 | |
| 75 | public function setSendungsnummern(?string $sendungsnummern): static |
| 76 | { |
| 77 | $this->sendungsnummern = $sendungsnummern; |
| 78 | |
| 79 | return $this; |
| 80 | } |
| 81 | |
| 82 | public function getShopbestellnummer(): ?string |
| 83 | { |
| 84 | return $this->shopbestellnummer; |
| 85 | } |
| 86 | |
| 87 | public function setShopbestellnummer(?string $shopbestellnummer): static |
| 88 | { |
| 89 | $this->shopbestellnummer = $shopbestellnummer; |
| 90 | |
| 91 | return $this; |
| 92 | } |
| 93 | |
| 94 | public function getGemailtan(): ?string |
| 95 | { |
| 96 | return $this->gemailtan; |
| 97 | } |
| 98 | |
| 99 | public function setGemailtan(?string $gemailtan): static |
| 100 | { |
| 101 | $this->gemailtan = $gemailtan; |
| 102 | |
| 103 | return $this; |
| 104 | } |
| 105 | |
| 106 | public function getGebuchtam(): ?\DateTimeImmutable |
| 107 | { |
| 108 | return $this->gebuchtam; |
| 109 | } |
| 110 | |
| 111 | public function setGebuchtam(\DateTimeImmutable|\DateTime|null $dateTime): static |
| 112 | { |
| 113 | $this->gebuchtam = $dateTime instanceof \DateTime |
| 114 | ? \DateTimeImmutable::createFromMutable($dateTime) |
| 115 | : $dateTime; |
| 116 | |
| 117 | return $this; |
| 118 | } |
| 119 | |
| 120 | public function getGebuchtvon(): ?string |
| 121 | { |
| 122 | return $this->gebuchtvon; |
| 123 | } |
| 124 | |
| 125 | public function setGebuchtvon(?string $gebuchtvon): static |
| 126 | { |
| 127 | $this->gebuchtvon = $gebuchtvon; |
| 128 | |
| 129 | return $this; |
| 130 | } |
| 131 | |
| 132 | public function isKorrektur(): ?bool |
| 133 | { |
| 134 | return $this->korrektur; |
| 135 | } |
| 136 | |
| 137 | public function setKorrektur(?bool $korrektur): static |
| 138 | { |
| 139 | $this->korrektur = $korrektur; |
| 140 | |
| 141 | return $this; |
| 142 | } |
| 143 | |
| 144 | public function getUstidnr(): ?string |
| 145 | { |
| 146 | return $this->ustidnr; |
| 147 | } |
| 148 | |
| 149 | public function setUstidnr(?string $ustidnr): static |
| 150 | { |
| 151 | $this->ustidnr = $ustidnr; |
| 152 | |
| 153 | return $this; |
| 154 | } |
| 155 | |
| 156 | public function getSendungvon(): ?string |
| 157 | { |
| 158 | return $this->sendungvon; |
| 159 | } |
| 160 | |
| 161 | public function setSendungvon(?string $sendungvon): static |
| 162 | { |
| 163 | $this->sendungvon = $sendungvon; |
| 164 | |
| 165 | return $this; |
| 166 | } |
| 167 | |
| 168 | public function getEmail(): ?string |
| 169 | { |
| 170 | return $this->email; |
| 171 | } |
| 172 | |
| 173 | public function setEmail(?string $email): static |
| 174 | { |
| 175 | $this->email = $email; |
| 176 | |
| 177 | return $this; |
| 178 | } |
| 179 | |
| 180 | public function getLeistungszeitraumvon(): ?\DateTimeImmutable |
| 181 | { |
| 182 | return $this->leistungszeitraumvon; |
| 183 | } |
| 184 | |
| 185 | public function setLeistungszeitraumvon(\DateTimeImmutable|\DateTime|null $dateTime): static |
| 186 | { |
| 187 | $this->leistungszeitraumvon = $dateTime instanceof \DateTime |
| 188 | ? \DateTimeImmutable::createFromMutable($dateTime) |
| 189 | : $dateTime; |
| 190 | |
| 191 | return $this; |
| 192 | } |
| 193 | |
| 194 | public function getLeistungszeitraumbis(): ?\DateTimeImmutable |
| 195 | { |
| 196 | return $this->leistungszeitraumbis; |
| 197 | } |
| 198 | |
| 199 | public function setLeistungszeitraumbis(\DateTimeImmutable|\DateTime|null $dateTime): static |
| 200 | { |
| 201 | $this->leistungszeitraumbis = $dateTime instanceof \DateTime |
| 202 | ? \DateTimeImmutable::createFromMutable($dateTime) |
| 203 | : $dateTime; |
| 204 | |
| 205 | return $this; |
| 206 | } |
| 207 | } |