Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (35 sloc) 733 Bytes
<?php
namespace Doctrine\MongoDB\Aggregation\Stage;
use Doctrine\MongoDB\Aggregation\Builder;
use Doctrine\MongoDB\Aggregation\Stage;
/**
* Fluent interface for adding a $skip stage to an aggregation pipeline.
*
* @author alcaeus <alcaeus@alcaeus.org>
* @since 1.2
*/
class Skip extends Stage
{
/**
* @var integer
*/
private $skip;
/**
* @param Builder $builder
* @param integer $skip
*/
public function __construct(Builder $builder, $skip)
{
parent::__construct($builder);
$this->skip = (integer) $skip;
}
/**
* {@inheritdoc}
*/
public function getExpression()
{
return [
'$skip' => $this->skip
];
}
}
You can’t perform that action at this time.