private static function isLinkOnlyRelation(
        \ReflectionClass $class,
        $name
    )
    {
        $getterName = 'get' . Inflector::camelize($name);

        return !$class->hasMethod($getterName)
            || !Reflection::isMethodGetter($class->getMethod($getterName));
    }