1 | <?php |
||
22 | class Setting implements SerializableInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | * |
||
27 | * @ES\Id() |
||
28 | */ |
||
29 | private $id; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @ES\Property(type="string", options={"analyzer"="standard"}) |
||
35 | */ |
||
36 | private $name; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | * |
||
41 | * @ES\Property(type="string", options={"analyzer"="standard"}) |
||
42 | */ |
||
43 | private $description; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | * |
||
48 | * @ES\Property(type="string", options={"analyzer"="standard"}) |
||
49 | */ |
||
50 | private $profile = []; |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | * |
||
55 | * @ES\Property(type="string", options={"analyzer"="standard"}) |
||
56 | */ |
||
57 | private $type; |
||
58 | |||
59 | /** |
||
60 | * @var string |
||
61 | * |
||
62 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
63 | */ |
||
64 | private $value; |
||
65 | |||
66 | /** |
||
67 | * @var string |
||
68 | * |
||
69 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
70 | */ |
||
71 | private $salt; |
||
72 | |||
73 | /** |
||
74 | * @var string |
||
75 | * |
||
76 | * @ES\Property(type="date") |
||
77 | */ |
||
78 | private $createdAt; |
||
79 | |||
80 | /** |
||
81 | * Setting constructor. |
||
82 | */ |
||
83 | public function __construct() |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getId() |
||
95 | |||
96 | /** |
||
97 | * @param string $id |
||
98 | */ |
||
99 | public function setId($id) |
||
103 | |||
104 | /** |
||
105 | * @return string |
||
106 | */ |
||
107 | public function getValue() |
||
111 | |||
112 | /** |
||
113 | * @param string $value |
||
114 | */ |
||
115 | public function setValue($value) |
||
119 | |||
120 | /** |
||
121 | * Get type. |
||
122 | * |
||
123 | * @return string |
||
124 | */ |
||
125 | public function getType() |
||
129 | |||
130 | /** |
||
131 | * Set type. |
||
132 | * |
||
133 | * @param string $type |
||
134 | */ |
||
135 | public function setType($type) |
||
139 | |||
140 | /** |
||
141 | * Get profile. |
||
142 | * |
||
143 | * @return string|array |
||
144 | */ |
||
145 | public function getProfile() |
||
149 | |||
150 | /** |
||
151 | * Set profile. |
||
152 | * |
||
153 | * @param string|array $profile |
||
154 | */ |
||
155 | public function setProfile($profile) |
||
159 | |||
160 | /** |
||
161 | * Get description. |
||
162 | * |
||
163 | * @return string |
||
164 | */ |
||
165 | public function getDescription() |
||
169 | |||
170 | /** |
||
171 | * Set description. |
||
172 | * |
||
173 | * @param string $description |
||
174 | */ |
||
175 | public function setDescription($description) |
||
179 | |||
180 | /** |
||
181 | * Get name. |
||
182 | * |
||
183 | * @return string |
||
184 | */ |
||
185 | public function getName() |
||
189 | |||
190 | /** |
||
191 | * Set name. |
||
192 | * |
||
193 | * @param string $name |
||
194 | */ |
||
195 | public function setName($name) |
||
199 | |||
200 | /** |
||
201 | * @return string |
||
202 | */ |
||
203 | public function getSalt() |
||
207 | |||
208 | /** |
||
209 | * @param string $salt |
||
210 | */ |
||
211 | public function setSalt($salt) |
||
215 | |||
216 | /** |
||
217 | * @return string |
||
218 | */ |
||
219 | public function getCreatedAt() |
||
223 | |||
224 | /** |
||
225 | * @param string $createdAt |
||
226 | */ |
||
227 | public function setCreatedAt($createdAt) |
||
231 | |||
232 | /** |
||
233 | * Specify data which should be serialized to JSON. |
||
234 | * |
||
235 | * @return mixed Data which can be serialized by json_encode. |
||
236 | */ |
||
237 | public function getSerializableData() |
||
248 | } |
||
249 |
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..