private function getRelationName($range) { $class = $this->classes[$range]; if (isset($class['interfaceName'])) { return $class['interfaceName']; } return $class['name']; }