GraphAware\Neo4j\Client\Formatter\RecordView::relationshipValue PHP Method

relationshipValue() public method

public relationshipValue ( string $key ) : Relationship
$key string
return GraphAware\Neo4j\Client\Formatter\Type\Relationship
    public function relationshipValue($key)
    {
        if (!$this->hasValue($key) || !$this->value($key) instanceof Relationship) {
            throw new \InvalidArgumentException(sprintf('value for %s is not of type %s', $key, Relationship::class));
        }
        return $this->value($key);
    }