| @@ 284-289 (lines=6) @@ | ||
| 281 | throw new \LogicException($message); |
|
| 282 | } |
|
| 283 | ||
| 284 | if ($reflectionClass->hasMethod('get'.$camelCaseName)) { |
|
| 285 | return [ |
|
| 286 | 'getter' => 'get' . $camelCaseName, |
|
| 287 | 'setter' => $setterName |
|
| 288 | ]; |
|
| 289 | } |
|
| 290 | ||
| 291 | if ($propertyType === 'boolean') { |
|
| 292 | if ($reflectionClass->hasMethod('is' . $camelCaseName)) { |
|
| @@ 292-297 (lines=6) @@ | ||
| 289 | } |
|
| 290 | ||
| 291 | if ($propertyType === 'boolean') { |
|
| 292 | if ($reflectionClass->hasMethod('is' . $camelCaseName)) { |
|
| 293 | return [ |
|
| 294 | 'getter' => 'is' . $camelCaseName, |
|
| 295 | 'setter' => $setterName |
|
| 296 | ]; |
|
| 297 | } |
|
| 298 | ||
| 299 | $message = sprintf( |
|
| 300 | 'Missing %s() or %s() method in %s class. Add it, or change property to public.', |
|