src/Traits/WithRelationsTrait.php
public function getRelation($type)
    {
        if (!isset($this->relations[$type])) {
            throw new RelationNotFoundException($type);
        }
        return $this->relations[$type];
    }
public function getRelation($type)
    {
        if (!isset($this->relations[$type])) {
            throw new RelationNotFoundException($type);
        }
        return $this->relations[$type];
    }
public function getRelation ( $ type ) { if ( ! isset ( $ this -> relations [ $ type ] ) ) { throw new RelationNotFoundException ( $ type ) ; } return $ this -> relations [ $ type ] ; }
Get a relation link.
@param string $type
@return RelationLinkInterface
@throws RelationNotFoundException
Get a relation link .