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