Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
7 / 7 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
1 / 1 |
| Importauftragdata | |
100.00% |
7 / 7 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
1 / 1 |
| getData | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setData | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getLfdnr | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getMd5 | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setMd5 | |
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\Traits\BlameableEntity; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 11 | |
| 12 | #[ORM\Entity] |
| 13 | #[ORM\Table(name: 'IMPAUFTRAGDATA')] |
| 14 | class Importauftragdata implements BlameableEntityInterface |
| 15 | { |
| 16 | use BlameableEntity; |
| 17 | |
| 18 | #[ORM\Column(name: 'data', type: 'blob_base64', nullable: true)] |
| 19 | private ?string $data = null; |
| 20 | |
| 21 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 22 | #[ORM\Id] |
| 23 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 24 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 25 | public private(set) ?int $lfdnr = null; |
| 26 | |
| 27 | #[ORM\Column(name: 'md5', type: Types::STRING, length: 32, nullable: true)] |
| 28 | private ?string $md5 = null; |
| 29 | |
| 30 | public function getData(): ?string |
| 31 | { |
| 32 | return $this->data; |
| 33 | } |
| 34 | |
| 35 | public function setData(?string $data): self |
| 36 | { |
| 37 | $this->data = $data; |
| 38 | |
| 39 | return $this; |
| 40 | } |
| 41 | |
| 42 | public function getLfdnr(): ?int |
| 43 | { |
| 44 | return $this->lfdnr; |
| 45 | } |
| 46 | |
| 47 | public function getMd5(): ?string |
| 48 | { |
| 49 | return $this->md5; |
| 50 | } |
| 51 | |
| 52 | public function setMd5(?string $md5): self |
| 53 | { |
| 54 | $this->md5 = $md5; |
| 55 | |
| 56 | return $this; |
| 57 | } |
| 58 | } |