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
Werbeaktionenordner
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
 getBezeichnung
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBezeichnung
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
 getVaterlfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setVaterlfdnr
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: 'WERBEAKTIONENORDNER')]
14#[ORM\Index(columns: ['vaterlfdnr'], name: 'WERBEAKTIONENORDNER_VLFDNR_FK')]
15class Werbeaktionenordner implements BlameableEntityInterface
16{
17    use BlameableEntity;
18
19    #[ORM\Column(name: 'bezeichnung', type: Types::STRING, length: 80, nullable: true)]
20    private ?string $bezeichnung = null;
21
22    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
23    #[ORM\Id]
24    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
25    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
26    public private(set) ?int $lfdnr = null;
27
28    #[ORM\ManyToOne(targetEntity: Werbeaktionenordner::class)]
29    #[ORM\JoinColumn(name: 'vaterlfdnr', referencedColumnName: 'lfdnr')]
30    private ?Werbeaktionenordner $vaterlfdnr = null;
31
32    public function getBezeichnung(): ?string
33    {
34        return $this->bezeichnung;
35    }
36
37    public function setBezeichnung(?string $bezeichnung): self
38    {
39        $this->bezeichnung = $bezeichnung;
40
41        return $this;
42    }
43
44    public function getLfdnr(): ?int
45    {
46        return $this->lfdnr;
47    }
48
49    public function getVaterlfdnr(): ?self
50    {
51        return $this->vaterlfdnr;
52    }
53
54    public function setVaterlfdnr(?self $vaterlfdnr): self
55    {
56        $this->vaterlfdnr = $vaterlfdnr;
57
58        return $this;
59    }
60}