Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
5 / 5
CRAP
100.00% covered (success)
100.00%
1 / 1
Artikelean
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
5 / 5
5
100.00% covered (success)
100.00%
1 / 1
 getArtikellfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setArtikellfdnr
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getEan
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setEan
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getLfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Satag\AmicronEntityBundle\Entity;
6
7use Doctrine\DBAL\Types\Types;
8use Doctrine\ORM\Mapping as ORM;
9
10#[ORM\Entity]
11#[ORM\Table(name: 'ARTEAN')]
12#[ORM\Index(columns: ['artikellfdnr'], name: 'ARTEAN_ARTIKELLFDNR_FK')]
13#[ORM\UniqueConstraint(name: 'ARTEAN_EAN_UK', columns: ['ean'])]
14class Artikelean
15{
16    #[ORM\ManyToOne(targetEntity: Artikel::class)]
17    #[ORM\JoinColumn(name: 'artikellfdnr', referencedColumnName: 'lfdnr')]
18    private ?Artikel $artikellfdnr = null;
19
20    #[ORM\Column(name: 'ean', type: Types::STRING, length: 30, nullable: false)]
21    private string $ean;
22
23    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
24    #[ORM\Id]
25    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
26    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
27    public private(set) ?int $lfdnr = null;
28
29    public function getArtikellfdnr(): ?Artikel
30    {
31        return $this->artikellfdnr;
32    }
33
34    public function setArtikellfdnr(?Artikel $artikellfdnr): self
35    {
36        $this->artikellfdnr = $artikellfdnr;
37
38        return $this;
39    }
40
41    public function getEan(): string
42    {
43        return $this->ean;
44    }
45
46    public function setEan(string $ean): self
47    {
48        $this->ean = $ean;
49
50        return $this;
51    }
52
53    public function getLfdnr(): ?int
54    {
55        return $this->lfdnr;
56    }
57}