| @@ 263-268 (lines=6) @@ | ||
| 260 | throw new \LogicException($message); |
|
| 261 | } |
|
| 262 | ||
| 263 | if ($reflectionClass->hasMethod('get'.$camelCaseName)) { |
|
| 264 | return [ |
|
| 265 | 'getter' => 'get' . $camelCaseName, |
|
| 266 | 'setter' => $setterName |
|
| 267 | ]; |
|
| 268 | } |
|
| 269 | ||
| 270 | if ($propertyType === 'boolean') { |
|
| 271 | if ($reflectionClass->hasMethod('is' . $camelCaseName)) { |
|
| @@ 271-276 (lines=6) @@ | ||
| 268 | } |
|
| 269 | ||
| 270 | if ($propertyType === 'boolean') { |
|
| 271 | if ($reflectionClass->hasMethod('is' . $camelCaseName)) { |
|
| 272 | return [ |
|
| 273 | 'getter' => 'is' . $camelCaseName, |
|
| 274 | 'setter' => $setterName |
|
| 275 | ]; |
|
| 276 | } |
|
| 277 | ||
| 278 | $message = sprintf( |
|
| 279 | 'Missing %s() or %s() method in %s class. Add it, or change property to public.', |
|