Doctrine\MongoDB\Aggregation\Builder::skip PHP Méthode

skip() public méthode

Skips over the specified number of documents that pass into the stage and passes the remaining documents to the next stage in the pipeline.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/skip/
public skip ( integer $skip ) : Doctrine\MongoDB\Aggregation\Stage\Skip
$skip integer
Résultat Doctrine\MongoDB\Aggregation\Stage\Skip
    public function skip($skip)
    {
        return $this->addStage(new Stage\Skip($this, $skip));
    }

Usage Example

Exemple #1
0
 /**
  * Skips over the specified number of documents that pass into the stage and
  * passes the remaining documents to the next stage in the pipeline.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/skip/
  *
  * @param integer $skip
  * @return Stage\Skip
  */
 public function skip($skip)
 {
     return $this->builder->skip($skip);
 }