Since: 1.2
Author: alcaeus (alcaeus@alcaeus.org)
Inheritance: extends Doctrine\MongoDB\Aggregation\Stage
示例#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);
 }
示例#2
0
 public function testMatchStage()
 {
     $matchStage = new Match($this->getTestAggregationBuilder());
     $matchStage->field('someField')->equals('someValue');
     $this->assertSame(array('$match' => array('someField' => 'someValue')), $matchStage->getExpression());
 }