Completed
Push — master ( 2cf029...6368d5 )
by Joachim
12:58
created

State::populateFromApiResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 1
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0

1 Method

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