Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 35 |
|
0.00% |
0 / 24 |
CRAP | |
0.00% |
0 / 1 |
| Hersteller | |
0.00% |
0 / 35 |
|
0.00% |
0 / 24 |
600 | |
0.00% |
0 / 1 |
| __toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getBemerkung | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBemerkung | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getEmail | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setEmail | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getFax | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setFax | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getGln | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setGln | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getInternet | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setInternet | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLand | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setLand | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setName | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getOrt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setOrt | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getPlz | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setPlz | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getStrasse | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setStrasse | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getTelefon | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setTelefon | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 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 (Hersteller) entity mapping to the HERSTELLER table. |
| 15 | */ |
| 16 | #[ORM\Entity] |
| 17 | #[ORM\Table(name: 'HERSTELLER')] |
| 18 | #[ORM\UniqueConstraint(name: 'HERSTELLER_UK', columns: ['name'])] |
| 19 | class Hersteller implements BlameableEntityInterface, \Stringable |
| 20 | { |
| 21 | use BlameableEntity; |
| 22 | |
| 23 | #[ORM\Column(name: 'bemerkung', type: Types::TEXT, nullable: true)] |
| 24 | private ?string $bemerkung = null; |
| 25 | |
| 26 | #[ORM\Column(name: 'email', type: Types::STRING, length: 70, nullable: true)] |
| 27 | private ?string $email = null; |
| 28 | |
| 29 | #[ORM\Column(name: 'fax', type: Types::STRING, length: 30, nullable: true)] |
| 30 | private ?string $fax = null; |
| 31 | |
| 32 | #[ORM\Column(name: 'gln', type: Types::STRING, length: 13, nullable: true)] |
| 33 | private ?string $gln = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'internet', type: Types::STRING, length: 250, nullable: true)] |
| 36 | private ?string $internet = null; |
| 37 | |
| 38 | #[ORM\Column(name: 'land', type: Types::STRING, length: 3, nullable: true)] |
| 39 | private ?string $land = null; |
| 40 | |
| 41 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 42 | #[ORM\Id] |
| 43 | #[ORM\GeneratedValue(strategy: 'CUSTOM')] |
| 44 | #[ORM\CustomIdGenerator(class: IdGeneratorLfdnr::class)] |
| 45 | private ?int $lfdnr = null; |
| 46 | |
| 47 | #[ORM\Column(name: 'name', type: Types::STRING, length: 50, nullable: false, unique: true)] |
| 48 | private string $name = ''; |
| 49 | |
| 50 | #[ORM\Column(name: 'ort', type: Types::STRING, length: 40, nullable: true)] |
| 51 | private ?string $ort = null; |
| 52 | |
| 53 | #[ORM\Column(name: 'plz', type: Types::STRING, length: 9, nullable: true)] |
| 54 | private ?string $plz = null; |
| 55 | |
| 56 | #[ORM\Column(name: 'strasse', type: Types::STRING, length: 40, nullable: true)] |
| 57 | private ?string $strasse = null; |
| 58 | |
| 59 | #[ORM\Column(name: 'telefon', type: Types::STRING, length: 30, nullable: true)] |
| 60 | private ?string $telefon = null; |
| 61 | |
| 62 | public function __toString(): string |
| 63 | { |
| 64 | return \sprintf('\\\\Hersteller:%s (%s)', $this->lfdnr, $this->name); |
| 65 | } |
| 66 | |
| 67 | public function getBemerkung(): ?string |
| 68 | { |
| 69 | return $this->bemerkung; |
| 70 | } |
| 71 | |
| 72 | public function setBemerkung(?string $bemerkung): self |
| 73 | { |
| 74 | $this->bemerkung = $bemerkung; |
| 75 | |
| 76 | return $this; |
| 77 | } |
| 78 | |
| 79 | public function getEmail(): ?string |
| 80 | { |
| 81 | return $this->email; |
| 82 | } |
| 83 | |
| 84 | public function setEmail(?string $email): self |
| 85 | { |
| 86 | $this->email = $email; |
| 87 | |
| 88 | return $this; |
| 89 | } |
| 90 | |
| 91 | public function getFax(): ?string |
| 92 | { |
| 93 | return $this->fax; |
| 94 | } |
| 95 | |
| 96 | public function setFax(?string $fax): self |
| 97 | { |
| 98 | $this->fax = $fax; |
| 99 | |
| 100 | return $this; |
| 101 | } |
| 102 | |
| 103 | public function getGln(): ?string |
| 104 | { |
| 105 | return $this->gln; |
| 106 | } |
| 107 | |
| 108 | public function setGln(?string $gln): self |
| 109 | { |
| 110 | $this->gln = $gln; |
| 111 | |
| 112 | return $this; |
| 113 | } |
| 114 | |
| 115 | public function getInternet(): ?string |
| 116 | { |
| 117 | return $this->internet; |
| 118 | } |
| 119 | |
| 120 | public function setInternet(?string $internet): self |
| 121 | { |
| 122 | $this->internet = $internet; |
| 123 | |
| 124 | return $this; |
| 125 | } |
| 126 | |
| 127 | public function getLand(): ?string |
| 128 | { |
| 129 | return $this->land; |
| 130 | } |
| 131 | |
| 132 | public function setLand(?string $land): self |
| 133 | { |
| 134 | $this->land = $land; |
| 135 | |
| 136 | return $this; |
| 137 | } |
| 138 | |
| 139 | public function getLfdnr(): ?int |
| 140 | { |
| 141 | return $this->lfdnr; |
| 142 | } |
| 143 | |
| 144 | public function getName(): string |
| 145 | { |
| 146 | return $this->name; |
| 147 | } |
| 148 | |
| 149 | public function setName(string $name): self |
| 150 | { |
| 151 | $this->name = $name; |
| 152 | |
| 153 | return $this; |
| 154 | } |
| 155 | |
| 156 | public function getOrt(): ?string |
| 157 | { |
| 158 | return $this->ort; |
| 159 | } |
| 160 | |
| 161 | public function setOrt(?string $ort): self |
| 162 | { |
| 163 | $this->ort = $ort; |
| 164 | |
| 165 | return $this; |
| 166 | } |
| 167 | |
| 168 | public function getPlz(): ?string |
| 169 | { |
| 170 | return $this->plz; |
| 171 | } |
| 172 | |
| 173 | public function setPlz(?string $plz): self |
| 174 | { |
| 175 | $this->plz = $plz; |
| 176 | |
| 177 | return $this; |
| 178 | } |
| 179 | |
| 180 | public function getStrasse(): ?string |
| 181 | { |
| 182 | return $this->strasse; |
| 183 | } |
| 184 | |
| 185 | public function setStrasse(?string $strasse): self |
| 186 | { |
| 187 | $this->strasse = $strasse; |
| 188 | |
| 189 | return $this; |
| 190 | } |
| 191 | |
| 192 | public function getTelefon(): ?string |
| 193 | { |
| 194 | return $this->telefon; |
| 195 | } |
| 196 | |
| 197 | public function setTelefon(?string $telefon): self |
| 198 | { |
| 199 | $this->telefon = $telefon; |
| 200 | |
| 201 | return $this; |
| 202 | } |
| 203 | } |