public function limit(int $limit) : Stage\Limit
    {
        $stage = new Stage\Limit($this, $limit);
        $this->addStage($stage);

        return $stage;
    }
public function limit(int $limit) : Stage\Limit
    {
        $stage = new Stage\Limit($this, $limit);
        $this->addStage($stage);

        return $stage;
    }
public function limit ( int $ limit ) : Stage \ Limit { $ stage = new Stage \ Limit ( $ this , $ limit ) ; $ this -> addStage ( $ stage ) ; return $ stage ; }
Limits the number of documents passed to the next stage in the pipeline.

@see http://docs.mongodb.org/manual/reference/operator/aggregation/limit/
Limits the number of documents passed to the next stage in the pipeline .