Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 16 |
|
0.00% |
0 / 11 |
CRAP | |
0.00% |
0 / 1 |
| Beleganlage | |
0.00% |
0 / 16 |
|
0.00% |
0 / 11 |
132 | |
0.00% |
0 / 1 |
| getBeleg | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBeleg | |
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 | |||
| getDaten | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setDaten | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getDatentyp | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setDatentyp | |
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 | |||
| 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 | use Symfony\Component\Validator\Constraints as Assert; |
| 12 | |
| 13 | /** |
| 14 | * Dokumente. |
| 15 | * |
| 16 | * @see \Satag\AmicronEntityBundle\Tests\Entity\BeleganlageTest |
| 17 | */ |
| 18 | #[ORM\Entity] |
| 19 | #[ORM\Table(name: 'BELEGEANLAGEN')] |
| 20 | class Beleganlage implements BlameableEntityInterface |
| 21 | { |
| 22 | use BlameableEntity; |
| 23 | |
| 24 | #[ORM\ManyToOne(targetEntity: Beleg::class)] |
| 25 | #[ORM\JoinColumn(name: 'belegelfdnr', referencedColumnName: 'lfdnr')] |
| 26 | private ?Beleg $beleg = null; |
| 27 | |
| 28 | #[ORM\Column(name: 'dateiname', type: Types::STRING, length: 255, nullable: true)] |
| 29 | private ?string $dateiname = null; |
| 30 | |
| 31 | #[ORM\Column(name: 'beleg', type: 'blob_base64', nullable: true)] |
| 32 | #[Assert\DisableAutoMapping] |
| 33 | private ?string $daten = null; |
| 34 | |
| 35 | #[ORM\Column(name: 'datentyp', type: Types::INTEGER, nullable: true)] |
| 36 | private ?int $datentyp = null; |
| 37 | |
| 38 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 39 | #[ORM\Id] |
| 40 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 41 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 42 | public private(set) ?int $lfdnr = null; |
| 43 | |
| 44 | #[ORM\Column(name: 'pos', type: Types::INTEGER, nullable: true)] |
| 45 | private ?int $pos = null; |
| 46 | |
| 47 | public function getBeleg(): ?Beleg |
| 48 | { |
| 49 | return $this->beleg; |
| 50 | } |
| 51 | |
| 52 | public function setBeleg(?Beleg $beleg): self |
| 53 | { |
| 54 | $this->beleg = $beleg; |
| 55 | |
| 56 | return $this; |
| 57 | } |
| 58 | |
| 59 | public function getDateiname(): ?string |
| 60 | { |
| 61 | return $this->dateiname; |
| 62 | } |
| 63 | |
| 64 | public function setDateiname(?string $dateiname): self |
| 65 | { |
| 66 | $this->dateiname = $dateiname; |
| 67 | |
| 68 | return $this; |
| 69 | } |
| 70 | |
| 71 | public function getDaten(): ?string |
| 72 | { |
| 73 | return $this->daten; |
| 74 | } |
| 75 | |
| 76 | public function setDaten(?string $daten): self |
| 77 | { |
| 78 | $this->daten = $daten; |
| 79 | |
| 80 | return $this; |
| 81 | } |
| 82 | |
| 83 | public function getDatentyp(): ?int |
| 84 | { |
| 85 | return $this->datentyp; |
| 86 | } |
| 87 | |
| 88 | public function setDatentyp(?int $datentyp): self |
| 89 | { |
| 90 | $this->datentyp = $datentyp; |
| 91 | |
| 92 | return $this; |
| 93 | } |
| 94 | |
| 95 | public function getLfdnr(): ?int |
| 96 | { |
| 97 | return $this->lfdnr; |
| 98 | } |
| 99 | |
| 100 | public function getPos(): ?int |
| 101 | { |
| 102 | return $this->pos; |
| 103 | } |
| 104 | |
| 105 | public function setPos(?int $pos): self |
| 106 | { |
| 107 | $this->pos = $pos; |
| 108 | |
| 109 | return $this; |
| 110 | } |
| 111 | } |