1 | <?php |
||
2 | |||
3 | namespace DevoraliveCachet\Entity; |
||
4 | |||
5 | use JMS\Serializer\Annotation as JMS; |
||
6 | |||
7 | /** |
||
8 | * Class Component |
||
9 | * @package DevoraliveCachet\Entity |
||
10 | */ |
||
11 | class Component extends Entity |
||
12 | { |
||
13 | const STATUS_OPERATIONAL = 1; |
||
14 | const STATUS_PERFORMANCE_ISSUES = 2; |
||
15 | const STATUS_PARTIAL_OUTAGE = 3; |
||
16 | const STATUS_MAJOR_OUTAGE = 4; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | * @JMS\Type("string") |
||
21 | */ |
||
22 | protected $name; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | * @JMS\Type("string") |
||
27 | */ |
||
28 | protected $description; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | * @JMS\Type("string") |
||
33 | */ |
||
34 | protected $link; |
||
35 | |||
36 | /** |
||
37 | * @var int |
||
38 | * @JMS\Type("int") |
||
39 | */ |
||
40 | protected $status; |
||
41 | |||
42 | /** |
||
43 | * @var int |
||
44 | * @JMS\Type("int") |
||
45 | */ |
||
46 | protected $order; |
||
47 | |||
48 | /** |
||
49 | * @var int |
||
50 | * @JMS\Type("int") |
||
51 | * @JMS\SerializedName("group_id") |
||
52 | */ |
||
53 | protected $group; |
||
54 | |||
55 | /** |
||
56 | * @var string |
||
57 | * @JMS\Type("string") |
||
58 | * @JMS\SerializedName("status_name") |
||
59 | */ |
||
60 | protected $statusName; |
||
61 | |||
62 | public function __construct() |
||
63 | { |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * Get the value of Name |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getName() |
||
72 | { |
||
73 | return $this->name; |
||
74 | } |
||
75 | |||
76 | /** |
||
77 | * Set the value of Name |
||
78 | * |
||
79 | * @param string name |
||
0 ignored issues
–
show
|
|||
80 | * |
||
81 | * @return self |
||
82 | */ |
||
83 | public function setName($name) |
||
84 | { |
||
85 | $this->name = $name; |
||
86 | |||
87 | return $this; |
||
88 | } |
||
89 | |||
90 | /** |
||
91 | * Get the value of Description |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getDescription() |
||
96 | { |
||
97 | return $this->description; |
||
98 | } |
||
99 | |||
100 | /** |
||
101 | * Set the value of Description |
||
102 | * |
||
103 | * @param string description |
||
0 ignored issues
–
show
The type
DevoraliveCachet\Entity\description 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
104 | * |
||
105 | * @return self |
||
106 | */ |
||
107 | public function setDescription($description) |
||
108 | { |
||
109 | $this->description = $description; |
||
110 | |||
111 | return $this; |
||
112 | } |
||
113 | |||
114 | /** |
||
115 | * Get the value of Link |
||
116 | * |
||
117 | * @return string |
||
118 | */ |
||
119 | public function getLink() |
||
120 | { |
||
121 | return $this->link; |
||
122 | } |
||
123 | |||
124 | /** |
||
125 | * Set the value of Link |
||
126 | * |
||
127 | * @param string link |
||
0 ignored issues
–
show
The type
DevoraliveCachet\Entity\link 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
128 | * |
||
129 | * @return self |
||
130 | */ |
||
131 | public function setLink($link) |
||
132 | { |
||
133 | $this->link = $link; |
||
134 | |||
135 | return $this; |
||
136 | } |
||
137 | |||
138 | /** |
||
139 | * Get the value of Status |
||
140 | * |
||
141 | * @return int |
||
142 | */ |
||
143 | public function getStatus() |
||
144 | { |
||
145 | return $this->status; |
||
146 | } |
||
147 | |||
148 | /** |
||
149 | * Set the value of Status |
||
150 | * |
||
151 | * @param int status |
||
0 ignored issues
–
show
The type
DevoraliveCachet\Entity\status 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
152 | * |
||
153 | * @return self |
||
154 | */ |
||
155 | public function setStatus($status) |
||
156 | { |
||
157 | $this->status = $status; |
||
158 | |||
159 | return $this; |
||
160 | } |
||
161 | |||
162 | /** |
||
163 | * Get the value of Order |
||
164 | * |
||
165 | * @return int |
||
166 | */ |
||
167 | public function getOrder() |
||
168 | { |
||
169 | return $this->order; |
||
170 | } |
||
171 | |||
172 | /** |
||
173 | * Set the value of Order |
||
174 | * |
||
175 | * @param int order |
||
0 ignored issues
–
show
The type
DevoraliveCachet\Entity\order 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
176 | * |
||
177 | * @return self |
||
178 | */ |
||
179 | public function setOrder($order) |
||
180 | { |
||
181 | $this->order = $order; |
||
182 | |||
183 | return $this; |
||
184 | } |
||
185 | |||
186 | /** |
||
187 | * Get the value of Group |
||
188 | * |
||
189 | * @return Group | int |
||
190 | */ |
||
191 | public function getGroup() |
||
192 | { |
||
193 | return $this->group; |
||
194 | } |
||
195 | |||
196 | /** |
||
197 | * Set the value of Group |
||
198 | * |
||
199 | * @param Group group |
||
200 | * |
||
201 | * @return self |
||
202 | */ |
||
203 | public function setGroup(Group $group) |
||
204 | { |
||
205 | $this->group = $group; |
||
0 ignored issues
–
show
It seems like
$group of type DevoraliveCachet\Entity\Group is incompatible with the declared type integer of property $group .
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.. ![]() |
|||
206 | |||
207 | return $this; |
||
208 | } |
||
209 | |||
210 | /** |
||
211 | * Get the value of Status Name |
||
212 | * |
||
213 | * @return string |
||
214 | */ |
||
215 | public function getStatusName() |
||
216 | { |
||
217 | return $this->statusName; |
||
218 | } |
||
219 | |||
220 | /** |
||
221 | * Set the value of Status Name |
||
222 | * |
||
223 | * @param string statusName |
||
0 ignored issues
–
show
The type
DevoraliveCachet\Entity\statusName 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
224 | * |
||
225 | * @return self |
||
226 | */ |
||
227 | public function setStatusName($statusName) |
||
228 | { |
||
229 | $this->statusName = $statusName; |
||
230 | |||
231 | return $this; |
||
232 | } |
||
233 | } |
||
234 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths