ApiPlatform\SchemaGenerator\AnnotationGenerator\DoctrineMongoDBAnnotationGenerator::getRelationName PHP Method

getRelationName() private method

Gets class or interface name to use in relations.
private getRelationName ( string $range ) : string
$range string
return string
    private function getRelationName($range)
    {
        $class = $this->classes[$range];
        if (isset($class['interfaceName'])) {
            return $class['interfaceName'];
        }
        return $class['name'];
    }