Doctrine\MongoDB\Aggregation\Stage\Out::__construct PHP Method

__construct() public method

public __construct ( Builder $builder, string $collection )
$builder Doctrine\MongoDB\Aggregation\Builder
$collection string
    public function __construct(Builder $builder, $collection)
    {
        parent::__construct($builder);
        $this->out($collection);
    }

Usage Example

Beispiel #1
0
 /**
  * @param Builder $builder
  * @param string $collection
  * @param DocumentManager $documentManager
  */
 public function __construct(Builder $builder, $collection, DocumentManager $documentManager)
 {
     $this->dm = $documentManager;
     parent::__construct($builder, $collection);
 }