Doctrine\MongoDB\Aggregation\Stage\Match::__construct PHP Méthode

__construct() public méthode

public __construct ( Builder $builder )
$builder Doctrine\MongoDB\Aggregation\Builder
    public function __construct(Builder $builder)
    {
        parent::__construct($builder);
        $this->query = $this->expr();
    }

Usage Example

Exemple #1
0
 /**
  * @param Builder $builder
  * @param float|array|Point $x
  * @param float $y
  */
 public function __construct(Builder $builder, $x, $y = null)
 {
     parent::__construct($builder);
     $this->near($x, $y);
 }