| @@ 224-232 (lines=9) @@ | ||
| 221 | * | |
| 222 | * @return null|bool | |
| 223 | */ | |
| 224 | public function getIsResidential() | |
| 225 |     { | |
| 226 |         $is_residential = $this->attributes->mayHave('is_residential')->value(); | |
| 227 |         if ($is_residential === null) { | |
| 228 | return null; | |
| 229 | } | |
| 230 | ||
| 231 | return (bool)$is_residential; | |
| 232 | } | |
| 233 | ||
| 234 | public function toArray() | |
| 235 |     { | |
| @@ 55-63 (lines=9) @@ | ||
| 52 |         return $this->mayHaveAsAsciiString('state'); | |
| 53 | } | |
| 54 | ||
| 55 | public function getIsResidential() | |
| 56 |     { | |
| 57 |         $is_residential = $this->attributes->mayHave('is_residential')->value(); | |
| 58 |         if ($is_residential === null) { | |
| 59 | return null; | |
| 60 | } | |
| 61 | ||
| 62 | return (bool)$is_residential; | |
| 63 | } | |
| 64 | ||
| 65 | private function mayHaveAsAsciiString($propertyName, callable $validate = null) | |
| 66 |     { | |