private function isExcluded(ReflectionMethod $method): bool
    {
        $exclude = $this->getAnnotationReader()->getMethodAnnotation($method, Exclude::class);

        return $exclude !== null;
    }
private function isExcluded(ReflectionMethod $method): bool
    {
        $exclude = $this->getAnnotationReader()->getMethodAnnotation($method, Exclude::class);

        return $exclude !== null;
    }
private function isExcluded ( ReflectionMethod $ method ) : bool { $ exclude = $ this -> getAnnotationReader ( ) -> getMethodAnnotation ( $ method , Exclude :: class ) ; return $ exclude !== null ; }
Returns whether the getter is excluded

@param ReflectionMethod $method

@return bool
Returns whether the getter is excluded