Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 19 |
|
0.00% |
0 / 13 |
CRAP | |
0.00% |
0 / 1 |
| Anlage | |
0.00% |
0 / 19 |
|
0.00% |
0 / 13 |
182 | |
0.00% |
0 / 1 |
| getDateiname | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setDateiname | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getDaten | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setDaten | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getExt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setExt | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getPsum | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setPsum | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getSpeicherung | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSpeicherung | |
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 | |||
| 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 | |
| 10 | /** |
| 11 | * Anlagen. |
| 12 | */ |
| 13 | #[ORM\Entity] |
| 14 | #[ORM\Table(name: 'ANLAGEN')] |
| 15 | #[ORM\Index(columns: ['ext'], name: 'ANLAGEN_EXT_IDX')] |
| 16 | #[ORM\Index(columns: ['psum'], name: 'ANLAGEN_PSUM_IDX')] |
| 17 | #[ORM\Index(columns: ['speicherung', 'typ', 'ext'], name: 'ANLAGEN_SPEICHTYPEXT_IDX')] |
| 18 | #[ORM\Index(columns: ['typ', 'ext'], name: 'ANLAGEN_TYPEXT_IDX')] |
| 19 | class Anlage |
| 20 | { |
| 21 | #[ORM\Column(name: 'dateiname', type: Types::STRING, length: 255, nullable: false)] |
| 22 | private string $dateiname; |
| 23 | |
| 24 | #[ORM\Column(name: 'daten', type: 'blob_base64', nullable: true)] |
| 25 | private ?string $daten = null; |
| 26 | |
| 27 | #[ORM\Column(name: 'ext', type: Types::STRING, length: 20, nullable: true)] |
| 28 | private ?string $ext = null; |
| 29 | |
| 30 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 31 | #[ORM\Id] |
| 32 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 33 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 34 | public private(set) ?int $lfdnr = null; |
| 35 | |
| 36 | #[ORM\Column(name: 'psum', type: Types::STRING, length: 32, nullable: true)] |
| 37 | private ?string $psum = null; |
| 38 | |
| 39 | #[ORM\Column(name: 'speicherung', type: Types::INTEGER, nullable: true)] |
| 40 | private ?int $speicherung = null; |
| 41 | |
| 42 | #[ORM\Column(name: 'typ', type: Types::INTEGER, nullable: false)] |
| 43 | private int $typ; |
| 44 | |
| 45 | public function getDateiname(): string |
| 46 | { |
| 47 | return $this->dateiname; |
| 48 | } |
| 49 | |
| 50 | public function setDateiname(string $dateiname): self |
| 51 | { |
| 52 | $this->dateiname = $dateiname; |
| 53 | |
| 54 | return $this; |
| 55 | } |
| 56 | |
| 57 | public function getDaten(): ?string |
| 58 | { |
| 59 | return $this->daten; |
| 60 | } |
| 61 | |
| 62 | public function setDaten(?string $daten): self |
| 63 | { |
| 64 | $this->daten = $daten; |
| 65 | |
| 66 | return $this; |
| 67 | } |
| 68 | |
| 69 | public function getExt(): ?string |
| 70 | { |
| 71 | return $this->ext; |
| 72 | } |
| 73 | |
| 74 | public function setExt(?string $ext): self |
| 75 | { |
| 76 | $this->ext = $ext; |
| 77 | |
| 78 | return $this; |
| 79 | } |
| 80 | |
| 81 | public function getLfdnr(): ?int |
| 82 | { |
| 83 | return $this->lfdnr; |
| 84 | } |
| 85 | |
| 86 | public function getPsum(): ?string |
| 87 | { |
| 88 | return $this->psum; |
| 89 | } |
| 90 | |
| 91 | public function setPsum(?string $psum): self |
| 92 | { |
| 93 | $this->psum = $psum; |
| 94 | |
| 95 | return $this; |
| 96 | } |
| 97 | |
| 98 | public function getSpeicherung(): ?int |
| 99 | { |
| 100 | return $this->speicherung; |
| 101 | } |
| 102 | |
| 103 | public function setSpeicherung(?int $speicherung): self |
| 104 | { |
| 105 | $this->speicherung = $speicherung; |
| 106 | |
| 107 | return $this; |
| 108 | } |
| 109 | |
| 110 | public function getTyp(): int |
| 111 | { |
| 112 | return $this->typ; |
| 113 | } |
| 114 | |
| 115 | public function setTyp(int $typ): self |
| 116 | { |
| 117 | $this->typ = $typ; |
| 118 | |
| 119 | return $this; |
| 120 | } |
| 121 | } |