GraphAware\Neo4j\OGM\Metadata\ClassMetadata::getRelationshipType PHP Method

getRelationshipType() public method

public getRelationshipType ( ) : string
return string
    public function getRelationshipType()
    {
        if (!$this->isRelationshipEntity()) {
            throw new MappingException(sprintf('This class metadata is not for a relationship entity'));
        }
        return $this->entityAnnotation->type;
    }