public function addKey($table, $hash, $range = null)
    {
        if ($this->count() >= 100) {
            throw new \Riverline\DynamoDB\Exception\AttributesException("Can't request more than 100 items");
        }

        if (!isset($this->keysByTable[$table])) {
            $this->keysByTable[$table] = array();
        }

        $this->keysByTable[$table][] = array($hash, $range);

        return $this;
    }
public function addKey($table, $hash, $range = null)
    {
        if ($this->count() >= 100) {
            throw new \Riverline\DynamoDB\Exception\AttributesException("Can't request more than 100 items");
        }

        if (!isset($this->keysByTable[$table])) {
            $this->keysByTable[$table] = array();
        }

        $this->keysByTable[$table][] = array($hash, $range);

        return $this;
    }
public function addKey ( $ table , $ hash , $ range = null ) { if ( $ this -> count ( ) >= 100 ) { throw new \ Riverline \ DynamoDB \ Exception \ AttributesException ( "Can't request more than 100 items" ) ; } if ( ! isset ( $ this -> keysByTable [ $ table ] ) ) { $ this -> keysByTable [ $ table ] = array ( ) ; } $ this -> keysByTable [ $ table ] [ ] = array ( $ hash , $ range ) ; return $ this ; }
Add an item key
@param string $table
@param string|integer $hash
@param string|integer|null $range
@throws \Riverline\DynamoDB\Exception\AttributesException
@return \Riverline\DynamoDB\Context\BatchGet
Add an item key