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

get() public method

public get ( string $key, mixed $defaultValue = null ) : Node | Relationship | mixed
$key string
$defaultValue mixed
return GraphAware\Neo4j\Client\Formatter\Type\Node | GraphAware\Neo4j\Client\Formatter\Type\Relationship | mixed
    public function get($key, $defaultValue = null)
    {
        if (!isset($this->keyToIndexMap[$key]) && 2 === func_num_args()) {
            return $defaultValue;
        }
        return $this->value($key);
    }