| @@ 314-319 (lines=6) @@ | ||
| 311 | throw new \LogicException($message); | |
| 312 | } | |
| 313 | ||
| 314 |         if ($reflectionClass->hasMethod('get'.$camelCaseName)) { | |
| 315 | return [ | |
| 316 | 'getter' => 'get' . $camelCaseName, | |
| 317 | 'setter' => $setterName | |
| 318 | ]; | |
| 319 | } | |
| 320 | ||
| 321 |         if ($propertyType === 'boolean') { | |
| 322 |             if ($reflectionClass->hasMethod('is' . $camelCaseName)) { | |
| @@ 322-327 (lines=6) @@ | ||
| 319 | } | |
| 320 | ||
| 321 |         if ($propertyType === 'boolean') { | |
| 322 |             if ($reflectionClass->hasMethod('is' . $camelCaseName)) { | |
| 323 | return [ | |
| 324 | 'getter' => 'is' . $camelCaseName, | |
| 325 | 'setter' => $setterName | |
| 326 | ]; | |
| 327 | } | |
| 328 | ||
| 329 | $message = sprintf( | |
| 330 | 'Missing %s() or %s() method in %s class. Add it, or change property to public.', | |