Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
7 / 7
CRAP
100.00% covered (success)
100.00%
1 / 1
Spamlist
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
7 / 7
7
100.00% covered (success)
100.00%
1 / 1
 getBw
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBw
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
 getSuchbegriff
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSuchbegriff
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getTyp
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTyp
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;
9
10#[ORM\Entity]
11#[ORM\Table(name: 'SPAMLIST')]
12#[ORM\UniqueConstraint(name: 'SPAMLIST_UK', columns: ['suchbegriff'])]
13class Spamlist
14{
15    #[ORM\Column(name: 'bw', type: Types::STRING, length: 1, nullable: true)]
16    private ?string $bw = null;
17
18    #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)]
19    #[ORM\Id]
20    #[ORM\GeneratedValue(strategy: 'SEQUENCE')]
21    #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)]
22    public private(set) ?int $lfdnr = null;
23
24    #[ORM\Column(name: 'suchbegriff', type: Types::STRING, length: 80, nullable: false)]
25    private string $suchbegriff;
26
27    #[ORM\Column(name: 'typ', type: Types::STRING, length: 1, nullable: true)]
28    private ?string $typ = null;
29
30    public function getBw(): ?string
31    {
32        return $this->bw;
33    }
34
35    public function setBw(?string $bw): self
36    {
37        $this->bw = $bw;
38
39        return $this;
40    }
41
42    public function getLfdnr(): ?int
43    {
44        return $this->lfdnr;
45    }
46
47    public function getSuchbegriff(): string
48    {
49        return $this->suchbegriff;
50    }
51
52    public function setSuchbegriff(string $suchbegriff): self
53    {
54        $this->suchbegriff = $suchbegriff;
55
56        return $this;
57    }
58
59    public function getTyp(): ?string
60    {
61        return $this->typ;
62    }
63
64    public function setTyp(?string $typ): self
65    {
66        $this->typ = $typ;
67
68        return $this;
69    }
70}