Completed
Push — master ( ad1942...52091d )
by Joachim
15:28
created

State::getIsDefault()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Loevgaard\DandomainFoundation\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Loevgaard\DandomainFoundation\Entity\Generated\StateInterface;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...enerated\StateInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use Loevgaard\DandomainFoundation\Entity\Generated\StateTrait;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...ty\Generated\StateTrait was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
/**
10
 * @ORM\Entity()
11
 * @ORM\Table(name="ldf_states")
12
 */
13
class State extends AbstractEntity implements StateInterface
14
{
15
    use StateTrait;
16
17
    protected $hydrateConversions = [
18
        'id' => 'externalId'
19
    ];
20
21
    /**
22
     * @var int
23
     *
24
     * @ORM\Id
25
     * @ORM\GeneratedValue
26
     * @ORM\Column(type="integer")
27
     **/
28
    protected $id;
29
30
    /**
31
     * @var int
32
     *
33
     * @ORM\Column(type="integer", unique=true)
34
     */
35
    protected $externalId;
36
37
    /**
38
     * @var bool|null
39
     *
40
     * @ORM\Column(nullable=true, type="boolean")
41
     */
42
    protected $exclStatistics;
43
44
    /**
45
     * @var bool|null
46
     *
47
     * @ORM\Column(nullable=true, type="boolean")
48
     */
49
    protected $isDefault;
50
51
    /**
52
     * @var string|null
53
     *
54
     * @ORM\Column(nullable=true, type="string", length=191)
55
     */
56
    protected $name;
57
58
    /**
59
     * @return int
60
     */
61
    public function getId(): int
62
    {
63
        return (int)$this->id;
64
    }
65
66
    /**
67
     * @param int $id
68
     * @return StateInterface
69
     */
70
    public function setId($id)
71
    {
72
        $this->id = $id;
73
        return $this;
74
    }
75
76
    /**
77
     * @return int
78
     */
79
    public function getExternalId(): int
80
    {
81
        return (int)$this->externalId;
82
    }
83
84
    /**
85
     * @param int $externalId
86
     * @return StateInterface
87
     */
88
    public function setExternalId($externalId)
89
    {
90
        $this->externalId = $externalId;
91
        return $this;
92
    }
93
94
    /**
95
     * @return bool|null
96
     */
97
    public function getExclStatistics()
98
    {
99
        return $this->exclStatistics;
100
    }
101
102
    /**
103
     * @param bool|null $exclStatistics
104
     * @return StateInterface
105
     */
106
    public function setExclStatistics($exclStatistics)
107
    {
108
        $this->exclStatistics = $exclStatistics;
109
        return $this;
110
    }
111
112
    /**
113
     * @return bool|null
114
     */
115
    public function getIsDefault()
116
    {
117
        return $this->isDefault;
118
    }
119
120
    /**
121
     * @param bool|null $isDefault
122
     * @return StateInterface
123
     */
124
    public function setIsDefault($isDefault)
125
    {
126
        $this->isDefault = $isDefault;
127
        return $this;
128
    }
129
130
    /**
131
     * @return null|string
132
     */
133
    public function getName()
134
    {
135
        return $this->name;
136
    }
137
138
    /**
139
     * @param null|string $name
140
     * @return StateInterface
141
     */
142
    public function setName($name)
143
    {
144
        $this->name = $name;
145
        return $this;
146
    }
147
}
148