Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 37 |
|
0.00% |
0 / 26 |
CRAP | |
0.00% |
0 / 1 |
| Dokumentliste | |
0.00% |
0 / 37 |
|
0.00% |
0 / 26 |
702 | |
0.00% |
0 / 1 |
| __toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getAdressenlfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setAdressenlfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getArtikellfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setArtikellfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getDokument | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setDokument | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getAuftraglfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setAuftraglfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getBezeichnung | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBezeichnung | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getDateiname | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setDateiname | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getEbayartikellfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setEbayartikellfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getFlags | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setFlags | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getPos | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setPos | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getSpeicherart | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSpeicherart | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getTyp | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setTyp | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getVaterlfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setVaterlfdnr | |
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\Traits\BlameableEntity; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 11 | |
| 12 | #[ORM\Entity] |
| 13 | #[ORM\Table(name: 'DOKUMENTLISTE')] |
| 14 | #[ORM\Index(columns: ['typ'], name: 'DOKUMENTLISTE_TYP_IDX')] |
| 15 | #[ORM\Index(columns: ['adressenlfdnr'], name: 'DOKUMENTLISTE_ADRESSENLFDNR_FK')] |
| 16 | #[ORM\Index(columns: ['artikellfdnr'], name: 'DOKUMENTLISTE_ARTIKELLFDNR_FK')] |
| 17 | #[ORM\Index(columns: ['auftraglfdnr'], name: 'DOKUMENTLISTE_AUFTRAGLFDNR_FK')] |
| 18 | #[ORM\Index(columns: ['ebayartikellfdnr'], name: 'DOKUMENTLISTE_EBAYARTLFDNR_FK')] |
| 19 | #[ORM\Index(columns: ['vaterlfdnr'], name: 'DOKUMENTLISTE_VATERLFDNR_FK')] |
| 20 | class Dokumentliste implements BlameableEntityInterface, \Stringable |
| 21 | { |
| 22 | use BlameableEntity; |
| 23 | |
| 24 | #[ORM\ManyToOne(targetEntity: Adresse::class)] |
| 25 | #[ORM\JoinColumn(name: 'adressenlfdnr', referencedColumnName: 'lfdnr')] |
| 26 | private ?Adresse $adressenlfdnr = null; |
| 27 | |
| 28 | #[ORM\ManyToOne(targetEntity: Artikel::class)] |
| 29 | #[ORM\JoinColumn(name: 'artikellfdnr', referencedColumnName: 'lfdnr')] |
| 30 | private ?Artikel $artikellfdnr = null; |
| 31 | |
| 32 | #[ORM\ManyToOne(targetEntity: Dokument::class)] |
| 33 | #[ORM\JoinColumn(name: 'dokumentelfdnr', referencedColumnName: 'lfdnr')] |
| 34 | private ?Dokument $dokument = null; |
| 35 | |
| 36 | #[ORM\ManyToOne(targetEntity: Auftrag::class)] |
| 37 | #[ORM\JoinColumn(name: 'auftraglfdnr', referencedColumnName: 'lfdnr')] |
| 38 | private ?Auftrag $auftraglfdnr = null; |
| 39 | |
| 40 | #[ORM\Column(name: 'bezeichnung', type: Types::STRING, length: 40, nullable: true)] |
| 41 | private ?string $bezeichnung = null; |
| 42 | |
| 43 | #[ORM\Column(name: 'dateiname', type: Types::STRING, length: 255, nullable: true)] |
| 44 | private ?string $dateiname = null; |
| 45 | |
| 46 | #[ORM\ManyToOne(targetEntity: Ebayartikel::class)] |
| 47 | #[ORM\JoinColumn(name: 'ebayartikellfdnr', referencedColumnName: 'lfdnr')] |
| 48 | private ?Ebayartikel $ebayartikellfdnr = null; |
| 49 | |
| 50 | #[ORM\Column(name: 'flags', type: Types::TEXT, nullable: true)] |
| 51 | private ?string $flags = null; |
| 52 | |
| 53 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 54 | #[ORM\Id] |
| 55 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 56 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 57 | public private(set) ?int $lfdnr = null; |
| 58 | |
| 59 | #[ORM\Column(name: 'pos', type: Types::INTEGER, nullable: true)] |
| 60 | private ?int $pos = null; |
| 61 | |
| 62 | #[ORM\Column(name: 'speicherart', type: Types::INTEGER, nullable: true)] |
| 63 | private ?int $speicherart = null; |
| 64 | |
| 65 | #[ORM\Column(name: 'typ', type: Types::INTEGER, nullable: true)] |
| 66 | private ?int $typ = null; |
| 67 | |
| 68 | #[ORM\ManyToOne(targetEntity: Dokumentliste::class)] |
| 69 | #[ORM\JoinColumn(name: 'vaterlfdnr', referencedColumnName: 'lfdnr')] |
| 70 | private ?Dokumentliste $vaterlfdnr = null; |
| 71 | |
| 72 | public function __toString(): string |
| 73 | { |
| 74 | return \sprintf('%s - %s (ID: %s)', $this->getBezeichnung(), $this->getDateiname(), $this->lfdnr); |
| 75 | } |
| 76 | |
| 77 | public function getAdressenlfdnr(): ?Adresse |
| 78 | { |
| 79 | return $this->adressenlfdnr; |
| 80 | } |
| 81 | |
| 82 | public function setAdressenlfdnr(?Adresse $adressenlfdnr): self |
| 83 | { |
| 84 | $this->adressenlfdnr = $adressenlfdnr; |
| 85 | |
| 86 | return $this; |
| 87 | } |
| 88 | |
| 89 | public function getArtikellfdnr(): ?Artikel |
| 90 | { |
| 91 | return $this->artikellfdnr; |
| 92 | } |
| 93 | |
| 94 | public function setArtikellfdnr(?Artikel $artikellfdnr): self |
| 95 | { |
| 96 | $this->artikellfdnr = $artikellfdnr; |
| 97 | |
| 98 | return $this; |
| 99 | } |
| 100 | |
| 101 | public function getDokument(): ?Dokument |
| 102 | { |
| 103 | return $this->dokument; |
| 104 | } |
| 105 | |
| 106 | public function setDokument(?Dokument $dokument): void |
| 107 | { |
| 108 | $this->dokument = $dokument; |
| 109 | } |
| 110 | |
| 111 | public function getAuftraglfdnr(): ?Auftrag |
| 112 | { |
| 113 | return $this->auftraglfdnr; |
| 114 | } |
| 115 | |
| 116 | public function setAuftraglfdnr(?Auftrag $auftraglfdnr): self |
| 117 | { |
| 118 | $this->auftraglfdnr = $auftraglfdnr; |
| 119 | |
| 120 | return $this; |
| 121 | } |
| 122 | |
| 123 | public function getBezeichnung(): ?string |
| 124 | { |
| 125 | return $this->bezeichnung; |
| 126 | } |
| 127 | |
| 128 | public function setBezeichnung(?string $bezeichnung): self |
| 129 | { |
| 130 | $this->bezeichnung = $bezeichnung; |
| 131 | |
| 132 | return $this; |
| 133 | } |
| 134 | |
| 135 | public function getDateiname(): ?string |
| 136 | { |
| 137 | return $this->dateiname; |
| 138 | } |
| 139 | |
| 140 | public function setDateiname(?string $dateiname): self |
| 141 | { |
| 142 | $this->dateiname = $dateiname; |
| 143 | |
| 144 | return $this; |
| 145 | } |
| 146 | |
| 147 | public function getEbayartikellfdnr(): ?Ebayartikel |
| 148 | { |
| 149 | return $this->ebayartikellfdnr; |
| 150 | } |
| 151 | |
| 152 | public function setEbayartikellfdnr(?Ebayartikel $ebayartikellfdnr): self |
| 153 | { |
| 154 | $this->ebayartikellfdnr = $ebayartikellfdnr; |
| 155 | |
| 156 | return $this; |
| 157 | } |
| 158 | |
| 159 | public function getFlags(): ?string |
| 160 | { |
| 161 | return $this->flags; |
| 162 | } |
| 163 | |
| 164 | public function setFlags(?string $flags): self |
| 165 | { |
| 166 | $this->flags = $flags; |
| 167 | |
| 168 | return $this; |
| 169 | } |
| 170 | |
| 171 | public function getLfdnr(): ?int |
| 172 | { |
| 173 | return $this->lfdnr; |
| 174 | } |
| 175 | |
| 176 | public function getPos(): ?int |
| 177 | { |
| 178 | return $this->pos; |
| 179 | } |
| 180 | |
| 181 | public function setPos(?int $pos): self |
| 182 | { |
| 183 | $this->pos = $pos; |
| 184 | |
| 185 | return $this; |
| 186 | } |
| 187 | |
| 188 | public function getSpeicherart(): ?int |
| 189 | { |
| 190 | return $this->speicherart; |
| 191 | } |
| 192 | |
| 193 | public function setSpeicherart(?int $speicherart): self |
| 194 | { |
| 195 | $this->speicherart = $speicherart; |
| 196 | |
| 197 | return $this; |
| 198 | } |
| 199 | |
| 200 | public function getTyp(): ?int |
| 201 | { |
| 202 | return $this->typ; |
| 203 | } |
| 204 | |
| 205 | public function setTyp(?int $typ): self |
| 206 | { |
| 207 | $this->typ = $typ; |
| 208 | |
| 209 | return $this; |
| 210 | } |
| 211 | |
| 212 | public function getVaterlfdnr(): ?self |
| 213 | { |
| 214 | return $this->vaterlfdnr; |
| 215 | } |
| 216 | |
| 217 | public function setVaterlfdnr(?self $vaterlfdnr): self |
| 218 | { |
| 219 | $this->vaterlfdnr = $vaterlfdnr; |
| 220 | |
| 221 | return $this; |
| 222 | } |
| 223 | } |