public function get($hashValue = null, $rangeValue = null)
    {
        if ($this->expr->condition->count() > 0) {
            throw ODMException::queryGetOperationConditionsNotSupported();
        }

        $this->setQueryClass(GetItem::class);

        if ($hashValue !== null) {
            $this->setPrimaryKey($hashValue, $rangeValue);
        }

        return $this;
    }
public function get($hashValue = null, $rangeValue = null)
    {
        if ($this->expr->condition->count() > 0) {
            throw ODMException::queryGetOperationConditionsNotSupported();
        }

        $this->setQueryClass(GetItem::class);

        if ($hashValue !== null) {
            $this->setPrimaryKey($hashValue, $rangeValue);
        }

        return $this;
    }
public function get ( $ hashValue = null , $ rangeValue = null ) { if ( $ this -> expr -> condition -> count ( ) > 0 ) { throw ODMException :: queryGetOperationConditionsNotSupported ( ) ; } $ this -> setQueryClass ( GetItem :: class ) ; if ( $ hashValue !== null ) { $ this -> setPrimaryKey ( $ hashValue , $ rangeValue ) ; } return $ this ; }
Sets the query operation to 'get' and optionally specifies the primary key.

@param mixed|null $hashValue
@param mixed|null $rangeValue

@return $this

@throws ODMException
Sets the query operation to get and optionally specifies the primary key .