Doctrine\MongoDB\Aggregation\Stage\Match::getExpression PHP Method

getExpression() public method

public getExpression ( )
    public function getExpression()
    {
        return ['$match' => $this->query->getQuery()];
    }

Usage Example

示例#1
0
 public function testMatchStage()
 {
     $matchStage = new Match($this->getTestAggregationBuilder());
     $matchStage->field('someField')->equals('someValue');
     $this->assertSame(array('$match' => array('someField' => 'someValue')), $matchStage->getExpression());
 }