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

supports() private method

Checks if the given class has any get{Property} method.
private supports ( string $class ) : boolean
$class string
return boolean
    private function supports($class)
    {
        $class = new \ReflectionClass($class);
        $methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);
        foreach ($methods as $method) {
            if ($this->isGetMethod($method)) {
                return true;
            }
        }
        return false;
    }