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
EmailAnlage
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
 getAnlagelfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAnlagelfdnr
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getEmaillfdnr
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setEmaillfdnr
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/**
11 * Anlagenzuord.
12 */
13#[ORM\Entity]
14#[ORM\Table(name: 'ANLAGENZUORD')]
15#[ORM\Index(columns: ['emaillfdnr'], name: 'ANLAGENZUORD_EMAILLFDNR_FK')]
16#[ORM\UniqueConstraint(name: 'ANLAGENZUORD_UK', columns: ['emaillfdnr', 'anlagelfdnr'])]
17class EmailAnlage
18{
19    #[ORM\Column(name: 'anlagelfdnr', type: Types::INTEGER, nullable: false)]
20    private int $anlagelfdnr;
21
22    #[ORM\ManyToOne(targetEntity: Email::class)]
23    #[ORM\JoinColumn(name: 'emaillfdnr', referencedColumnName: 'lfdnr')]
24    private ?Email $emaillfdnr = null;
25
26    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
27    #[ORM\Id]
28    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
29    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
30    public private(set) ?int $lfdnr = null;
31
32    public function getAnlagelfdnr(): int
33    {
34        return $this->anlagelfdnr;
35    }
36
37    public function setAnlagelfdnr(int $anlagelfdnr): self
38    {
39        $this->anlagelfdnr = $anlagelfdnr;
40
41        return $this;
42    }
43
44    public function getEmaillfdnr(): ?Email
45    {
46        return $this->emaillfdnr;
47    }
48
49    public function setEmaillfdnr(?Email $emaillfdnr): self
50    {
51        $this->emaillfdnr = $emaillfdnr;
52
53        return $this;
54    }
55
56    public function getLfdnr(): ?int
57    {
58        return $this->lfdnr;
59    }
60}