public function limit(int $amount)
    {
        $this->items = array_slice($this->items, 0, $amount);

        return $this;
    }
public function limit(int $amount)
    {
        $this->items = array_slice($this->items, 0, $amount);

        return $this;
    }
public function limit ( int $ amount ) { $ this -> items = array_slice ( $ this -> items , 0 , $ amount ) ; return $ this ; }
Limits the number of results returned.

@param int $amount the number of results to return

@return EmbeddedCursor returns this cursor
Limits the number of results returned .