Doctrine\MongoDB\Aggregation\Builder::getStage PHP Method

getStage() public method

Returns a certain stage from the pipeline
public getStage ( integer $index ) : Stage
$index integer
return Stage
    public function getStage($index)
    {
        if (!isset($this->stages[$index])) {
            throw new \OutOfRangeException("Could not find stage with index {$index}.");
        }
        return $this->stages[$index];
    }