Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 13
0.00% covered (danger)
0.00%
0 / 9
CRAP
0.00% covered (danger)
0.00%
0 / 1
ArtikelWebshop
0.00% covered (danger)
0.00%
0 / 13
0.00% covered (danger)
0.00%
0 / 9
90
0.00% covered (danger)
0.00%
0 / 1
 getArtikellfdnr
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setArtikellfdnr
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getLfdnr
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getShopid
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setShopid
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getShoplfdnr
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setShoplfdnr
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getShopstatus
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setShopstatus
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
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: 'ARTIKELSHOPZUORD')]
14#[ORM\Index(columns: ['artikellfdnr'], name: 'ARTIKELSHOPZUORD_ARTLFDNR_FK')]
15#[ORM\UniqueConstraint(name: 'ARTIKELSHOPZUORD_UK', columns: ['artikellfdnr', 'shoplfdnr'])]
16class ArtikelWebshop implements BlameableEntityInterface
17{
18    use BlameableEntity;
19
20    #[ORM\ManyToOne(targetEntity: Artikel::class)]
21    #[ORM\JoinColumn(name: 'artikellfdnr', referencedColumnName: 'lfdnr')]
22    private ?Artikel $artikellfdnr = null;
23
24    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
25    #[ORM\Id]
26    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
27    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
28    public private(set) ?int $lfdnr = null;
29
30    #[ORM\Column(name: 'shopid', type: Types::STRING, length: 15, nullable: true)]
31    private ?string $shopid = null;
32
33    #[ORM\Column(name: 'shoplfdnr', type: Types::INTEGER, nullable: false)]
34    private int $shoplfdnr;
35
36    #[ORM\Column(name: 'shopstatus', type: Types::INTEGER, nullable: true)]
37    private ?int $shopstatus = null;
38
39    public function getArtikellfdnr(): ?Artikel
40    {
41        return $this->artikellfdnr;
42    }
43
44    public function setArtikellfdnr(?Artikel $artikellfdnr): self
45    {
46        $this->artikellfdnr = $artikellfdnr;
47
48        return $this;
49    }
50
51    public function getLfdnr(): ?int
52    {
53        return $this->lfdnr;
54    }
55
56    public function getShopid(): ?string
57    {
58        return $this->shopid;
59    }
60
61    public function setShopid(?string $shopid): self
62    {
63        $this->shopid = $shopid;
64
65        return $this;
66    }
67
68    public function getShoplfdnr(): int
69    {
70        return $this->shoplfdnr;
71    }
72
73    public function setShoplfdnr(int $shoplfdnr): self
74    {
75        $this->shoplfdnr = $shoplfdnr;
76
77        return $this;
78    }
79
80    public function getShopstatus(): ?int
81    {
82        return $this->shopstatus;
83    }
84
85    public function setShopstatus(?int $shopstatus): self
86    {
87        $this->shopstatus = $shopstatus;
88
89        return $this;
90    }
91}