Doctrine\MongoDB\Aggregation\Stage::out PHP Method

out() public method

Takes the documents returned by the aggregation pipeline and writes them to a specified collection. This must be the last stage in the pipeline.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/out/
public out ( string $collection ) : Out
$collection string
return Doctrine\MongoDB\Aggregation\Stage\Out
    public function out($collection)
    {
        return $this->builder->out($collection);
    }