Mongolid\Cursor\Cursor::limit PHP Method

limit() public method

Limits the number of results returned.
public limit ( integer $amount ) : Cursor
$amount integer The number of results to return.
return Cursor Returns this cursor.
    public function limit(int $amount)
    {
        $this->params[1]['limit'] = $amount;
        return $this;
    }