Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
98.00% |
49 / 50 |
|
97.06% |
33 / 34 |
CRAP | |
0.00% |
0 / 1 |
| Herstelleransprech | |
98.00% |
49 / 50 |
|
97.06% |
33 / 34 |
34 | |
0.00% |
0 / 1 |
| __toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getAnrede | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setAnrede | |
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 | |||
| getEmail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setEmail | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getFax | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFax | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getHersteller | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setHersteller | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getInternet | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setInternet | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLand | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLand | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setName | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getName2 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setName2 | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getName3 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setName3 | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getOrt | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setOrt | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getPlz | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setPlz | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getStrasse | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setStrasse | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getTelefon | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setTelefon | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getTitel | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setTitel | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getVorname | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setVorname | |
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\Doctrine\IdGeneratorLfdnr; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntity; |
| 11 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 12 | |
| 13 | /** |
| 14 | * Manufacturer contact persons (Herstelleransprechpartner) mapping to HERSTELLERANSPRECH. |
| 15 | */ |
| 16 | #[ORM\Entity] |
| 17 | #[ORM\Table(name: 'HERSTELLERANSPRECH')] |
| 18 | #[ORM\Index(columns: ['herstellerlfdnr'], name: 'HERSTELLERANSPRECH_HER_FK')] |
| 19 | class Herstelleransprech implements BlameableEntityInterface, \Stringable |
| 20 | { |
| 21 | use BlameableEntity; |
| 22 | |
| 23 | #[ORM\Column(name: 'anrede', type: Types::STRING, length: 25, nullable: true)] |
| 24 | private ?string $anrede = null; |
| 25 | |
| 26 | #[ORM\Column(name: 'bemerkung', type: 'utf8_text', nullable: true)] |
| 27 | private ?string $bemerkung = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'email', type: Types::STRING, length: 70, nullable: true)] |
| 30 | private ?string $email = null; |
| 31 | |
| 32 | #[ORM\Column(name: 'fax', type: Types::STRING, length: 30, nullable: true)] |
| 33 | private ?string $fax = null; |
| 34 | |
| 35 | #[ORM\ManyToOne(targetEntity: Hersteller::class, cascade: ['persist'])] |
| 36 | #[ORM\JoinColumn(name: 'herstellerlfdnr', referencedColumnName: 'lfdnr')] |
| 37 | private ?Hersteller $hersteller = null; |
| 38 | |
| 39 | #[ORM\Column(name: 'internet', type: Types::STRING, length: 250, nullable: true)] |
| 40 | private ?string $internet = null; |
| 41 | |
| 42 | #[ORM\Column(name: 'land', type: Types::STRING, length: 3, nullable: true)] |
| 43 | private ?string $land = null; |
| 44 | |
| 45 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 46 | #[ORM\Id] |
| 47 | #[ORM\GeneratedValue(strategy: 'CUSTOM')] |
| 48 | #[ORM\CustomIdGenerator(class: IdGeneratorLfdnr::class)] |
| 49 | private ?int $lfdnr = null; |
| 50 | |
| 51 | #[ORM\Column(name: 'name', type: Types::STRING, length: 40, nullable: true)] |
| 52 | private ?string $name = null; |
| 53 | |
| 54 | #[ORM\Column(name: 'name2', type: Types::STRING, length: 50, nullable: true)] |
| 55 | private ?string $name2 = null; |
| 56 | |
| 57 | #[ORM\Column(name: 'name3', type: Types::STRING, length: 50, nullable: true)] |
| 58 | private ?string $name3 = null; |
| 59 | |
| 60 | #[ORM\Column(name: 'ort', type: Types::STRING, length: 40, nullable: true)] |
| 61 | private ?string $ort = null; |
| 62 | |
| 63 | #[ORM\Column(name: 'plz', type: Types::STRING, length: 9, nullable: true)] |
| 64 | private ?string $plz = null; |
| 65 | |
| 66 | #[ORM\Column(name: 'strasse', type: Types::STRING, length: 40, nullable: true)] |
| 67 | private ?string $strasse = null; |
| 68 | |
| 69 | #[ORM\Column(name: 'telefon', type: Types::STRING, length: 30, nullable: true)] |
| 70 | private ?string $telefon = null; |
| 71 | |
| 72 | #[ORM\Column(name: 'titel', type: Types::STRING, length: 20, nullable: true)] |
| 73 | private ?string $titel = null; |
| 74 | |
| 75 | #[ORM\Column(name: 'vorname', type: Types::STRING, length: 30, nullable: true)] |
| 76 | private ?string $vorname = null; |
| 77 | |
| 78 | public function __toString(): string |
| 79 | { |
| 80 | return \sprintf('\\\\Herstelleransprech:%s (%s %s)', $this->lfdnr, $this->vorname, $this->name); |
| 81 | } |
| 82 | |
| 83 | public function getAnrede(): ?string |
| 84 | { |
| 85 | return $this->anrede; |
| 86 | } |
| 87 | |
| 88 | public function setAnrede(?string $anrede): self |
| 89 | { |
| 90 | $this->anrede = $anrede; |
| 91 | |
| 92 | return $this; |
| 93 | } |
| 94 | |
| 95 | public function getBemerkung(): ?string |
| 96 | { |
| 97 | return $this->bemerkung; |
| 98 | } |
| 99 | |
| 100 | public function setBemerkung(?string $bemerkung): self |
| 101 | { |
| 102 | $this->bemerkung = $bemerkung; |
| 103 | |
| 104 | return $this; |
| 105 | } |
| 106 | |
| 107 | public function getEmail(): ?string |
| 108 | { |
| 109 | return $this->email; |
| 110 | } |
| 111 | |
| 112 | public function setEmail(?string $email): self |
| 113 | { |
| 114 | $this->email = $email; |
| 115 | |
| 116 | return $this; |
| 117 | } |
| 118 | |
| 119 | public function getFax(): ?string |
| 120 | { |
| 121 | return $this->fax; |
| 122 | } |
| 123 | |
| 124 | public function setFax(?string $fax): self |
| 125 | { |
| 126 | $this->fax = $fax; |
| 127 | |
| 128 | return $this; |
| 129 | } |
| 130 | |
| 131 | public function getHersteller(): ?Hersteller |
| 132 | { |
| 133 | return $this->hersteller; |
| 134 | } |
| 135 | |
| 136 | public function setHersteller(?Hersteller $hersteller): self |
| 137 | { |
| 138 | $this->hersteller = $hersteller; |
| 139 | |
| 140 | return $this; |
| 141 | } |
| 142 | |
| 143 | public function getInternet(): ?string |
| 144 | { |
| 145 | return $this->internet; |
| 146 | } |
| 147 | |
| 148 | public function setInternet(?string $internet): self |
| 149 | { |
| 150 | $this->internet = $internet; |
| 151 | |
| 152 | return $this; |
| 153 | } |
| 154 | |
| 155 | public function getLand(): ?string |
| 156 | { |
| 157 | return $this->land; |
| 158 | } |
| 159 | |
| 160 | public function setLand(?string $land): self |
| 161 | { |
| 162 | $this->land = $land; |
| 163 | |
| 164 | return $this; |
| 165 | } |
| 166 | |
| 167 | public function getLfdnr(): ?int |
| 168 | { |
| 169 | return $this->lfdnr; |
| 170 | } |
| 171 | |
| 172 | public function getName(): ?string |
| 173 | { |
| 174 | return $this->name; |
| 175 | } |
| 176 | |
| 177 | public function setName(?string $name): self |
| 178 | { |
| 179 | $this->name = $name; |
| 180 | |
| 181 | return $this; |
| 182 | } |
| 183 | |
| 184 | public function getName2(): ?string |
| 185 | { |
| 186 | return $this->name2; |
| 187 | } |
| 188 | |
| 189 | public function setName2(?string $name2): self |
| 190 | { |
| 191 | $this->name2 = $name2; |
| 192 | |
| 193 | return $this; |
| 194 | } |
| 195 | |
| 196 | public function getName3(): ?string |
| 197 | { |
| 198 | return $this->name3; |
| 199 | } |
| 200 | |
| 201 | public function setName3(?string $name3): self |
| 202 | { |
| 203 | $this->name3 = $name3; |
| 204 | |
| 205 | return $this; |
| 206 | } |
| 207 | |
| 208 | public function getOrt(): ?string |
| 209 | { |
| 210 | return $this->ort; |
| 211 | } |
| 212 | |
| 213 | public function setOrt(?string $ort): self |
| 214 | { |
| 215 | $this->ort = $ort; |
| 216 | |
| 217 | return $this; |
| 218 | } |
| 219 | |
| 220 | public function getPlz(): ?string |
| 221 | { |
| 222 | return $this->plz; |
| 223 | } |
| 224 | |
| 225 | public function setPlz(?string $plz): self |
| 226 | { |
| 227 | $this->plz = $plz; |
| 228 | |
| 229 | return $this; |
| 230 | } |
| 231 | |
| 232 | public function getStrasse(): ?string |
| 233 | { |
| 234 | return $this->strasse; |
| 235 | } |
| 236 | |
| 237 | public function setStrasse(?string $strasse): self |
| 238 | { |
| 239 | $this->strasse = $strasse; |
| 240 | |
| 241 | return $this; |
| 242 | } |
| 243 | |
| 244 | public function getTelefon(): ?string |
| 245 | { |
| 246 | return $this->telefon; |
| 247 | } |
| 248 | |
| 249 | public function setTelefon(?string $telefon): self |
| 250 | { |
| 251 | $this->telefon = $telefon; |
| 252 | |
| 253 | return $this; |
| 254 | } |
| 255 | |
| 256 | public function getTitel(): ?string |
| 257 | { |
| 258 | return $this->titel; |
| 259 | } |
| 260 | |
| 261 | public function setTitel(?string $titel): self |
| 262 | { |
| 263 | $this->titel = $titel; |
| 264 | |
| 265 | return $this; |
| 266 | } |
| 267 | |
| 268 | public function getVorname(): ?string |
| 269 | { |
| 270 | return $this->vorname; |
| 271 | } |
| 272 | |
| 273 | public function setVorname(?string $vorname): self |
| 274 | { |
| 275 | $this->vorname = $vorname; |
| 276 | |
| 277 | return $this; |
| 278 | } |
| 279 | } |