| @@ 343-348 (lines=6) @@ | ||
| 340 | throw new \LogicException($message); |
|
| 341 | } |
|
| 342 | ||
| 343 | if ($reflectionClass->hasMethod('get'.$camelCaseName)) { |
|
| 344 | return [ |
|
| 345 | 'getter' => 'get' . $camelCaseName, |
|
| 346 | 'setter' => $setterName |
|
| 347 | ]; |
|
| 348 | } |
|
| 349 | ||
| 350 | if ($propertyType === 'boolean') { |
|
| 351 | if ($reflectionClass->hasMethod('is' . $camelCaseName)) { |
|
| @@ 351-356 (lines=6) @@ | ||
| 348 | } |
|
| 349 | ||
| 350 | if ($propertyType === 'boolean') { |
|
| 351 | if ($reflectionClass->hasMethod('is' . $camelCaseName)) { |
|
| 352 | return [ |
|
| 353 | 'getter' => 'is' . $camelCaseName, |
|
| 354 | 'setter' => $setterName |
|
| 355 | ]; |
|
| 356 | } |
|
| 357 | ||
| 358 | $message = sprintf( |
|
| 359 | 'Missing %s() or %s() method in %s class. Add it, or change property to public.', |
|