@@ 26-34 (lines=9) @@ | ||
23 | mayHaveAsArray as public getMessages; |
|
24 | } |
|
25 | ||
26 | public function getIsResidential() |
|
27 | { |
|
28 | $is_residential = $this->attributes->mayHave('is_residential')->value(); |
|
29 | if ($is_residential === null) { |
|
30 | return null; |
|
31 | } |
|
32 | ||
33 | return (bool)$is_residential; |
|
34 | } |
|
35 | } |
|
36 |
@@ 223-231 (lines=9) @@ | ||
220 | * |
|
221 | * @return null|bool |
|
222 | */ |
|
223 | public function getIsResidential() |
|
224 | { |
|
225 | $is_residential = $this->attributes->mayHave('is_residential')->value(); |
|
226 | if ($is_residential === null) { |
|
227 | return null; |
|
228 | } |
|
229 | ||
230 | return (bool)$is_residential; |
|
231 | } |
|
232 | ||
233 | public function toArray() |
|
234 | { |