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
Retourartikelsernrzuord
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
 getArtsernrlfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setArtsernrlfdnr
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
 getRetourartikellfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRetourartikellfdnr
100.00% covered (success)
100.00%
2 / 2
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;
9use Satag\AmicronEntityBundle\Traits\BlameableEntity;
10use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface;
11
12#[ORM\Entity]
13#[ORM\Table(name: 'RETOURARTIKELSERNRZUORD')]
14#[ORM\Index(columns: ['artsernrlfdnr'], name: 'RASZ_ARTSERNRLFDNR_FK')]
15#[ORM\Index(columns: ['retourartikellfdnr'], name: 'RASZ_RETOURARTIKELLFDNR_FK')]
16#[ORM\UniqueConstraint(name: 'RETOURARTIKELSERNRZUORD_UK', columns: ['retourartikellfdnr', 'artsernrlfdnr'])]
17class Retourartikelsernrzuord implements BlameableEntityInterface
18{
19    use BlameableEntity;
20
21    #[ORM\ManyToOne(targetEntity: Seriennummer::class)]
22    #[ORM\JoinColumn(name: 'artsernrlfdnr', referencedColumnName: 'lfdnr')]
23    private ?Seriennummer $artsernrlfdnr = null;
24
25    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
26    #[ORM\Id]
27    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
28    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
29    public private(set) ?int $lfdnr = null;
30
31    #[ORM\ManyToOne(targetEntity: Retourartikel::class)]
32    #[ORM\JoinColumn(name: 'retourartikellfdnr', referencedColumnName: 'lfdnr')]
33    private ?Retourartikel $retourartikellfdnr = null;
34
35    public function getArtsernrlfdnr(): ?Seriennummer
36    {
37        return $this->artsernrlfdnr;
38    }
39
40    public function setArtsernrlfdnr(?Seriennummer $artsernrlfdnr): self
41    {
42        $this->artsernrlfdnr = $artsernrlfdnr;
43
44        return $this;
45    }
46
47    public function getLfdnr(): ?int
48    {
49        return $this->lfdnr;
50    }
51
52    public function getRetourartikellfdnr(): ?Retourartikel
53    {
54        return $this->retourartikellfdnr;
55    }
56
57    public function setRetourartikellfdnr(?Retourartikel $retourartikellfdnr): self
58    {
59        $this->retourartikellfdnr = $retourartikellfdnr;
60
61        return $this;
62    }
63}