Mongolid\Cursor\EmbeddedCursor::limit PHP 메소드

limit() 공개 메소드

Limits the number of results returned.
public limit ( integer $amount ) : EmbeddedCursor
$amount integer The number of results to return.
리턴 EmbeddedCursor Returns this cursor.
    public function limit(int $amount)
    {
        $this->items = array_slice($this->items, 0, $amount);
        return $this;
    }