Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer::isGetMethod PHP Method

isGetMethod() private method

Checks if a method's name is get.* or is.*, and can be called without parameters.
private isGetMethod ( ReflectionMethod $method ) : boolean
$method ReflectionMethod the method to check
return boolean whether the method is a getter or boolean getter
    private function isGetMethod(\ReflectionMethod $method)
    {
        $methodLength = strlen($method->name);
        return !$method->isStatic() && ((0 === strpos($method->name, 'get') && 3 < $methodLength || 0 === strpos($method->name, 'is') && 2 < $methodLength) && 0 === $method->getNumberOfRequiredParameters());
    }