Doctrine\MongoDB\Tests\Query\BuilderTest::provideProxiedExprMethods PHP Method

provideProxiedExprMethods() public method

    public function provideProxiedExprMethods()
    {
        return ['field()' => ['field', ['fieldName']], 'equals()' => ['equals', ['value']], 'where()' => ['where', ['this.fieldName == 1']], 'in()' => ['in', [['value1', 'value2']]], 'notIn()' => ['notIn', [['value1', 'value2']]], 'notEqual()' => ['notEqual', ['value']], 'gt()' => ['gt', [1]], 'gte()' => ['gte', [1]], 'lt()' => ['gt', [1]], 'lte()' => ['gte', [1]], 'range()' => ['range', [0, 1]], 'size()' => ['size', [1]], 'exists()' => ['exists', [true]], 'type()' => ['type', [7]], 'all()' => ['all', [['value1', 'value2']]], 'maxDistance' => ['maxDistance', [5]], 'minDistance' => ['minDistance', [5]], 'mod()' => ['mod', [2, 0]], 'near()' => ['near', [1, 2]], 'nearSphere()' => ['nearSphere', [1, 2]], 'withinBox()' => ['withinBox', [1, 2, 3, 4]], 'withinCenter()' => ['withinCenter', [1, 2, 3]], 'withinCenterSphere()' => ['withinCenterSphere', [1, 2, 3]], 'withinPolygon()' => ['withinPolygon', [[0, 0], [1, 1], [1, 0]]], 'geoIntersects()' => ['geoIntersects', [$this->getMockGeometry()]], 'geoWithin()' => ['geoWithin', [$this->getMockGeometry()]], 'geoWithinBox()' => ['geoWithinBox', [1, 2, 3, 4]], 'geoWithinCenter()' => ['geoWithinCenter', [1, 2, 3]], 'geoWithinCenterSphere()' => ['geoWithinCenterSphere', [1, 2, 3]], 'geoWithinPolygon()' => ['geoWithinPolygon', [[0, 0], [1, 1], [1, 0]]], 'inc()' => ['inc', [1]], 'mul()' => ['mul', [1]], 'unsetField()' => ['unsetField'], 'setOnInsert()' => ['setOnInsert', [1]], 'push() with value' => ['push', ['value']], 'push() with Expr' => ['push', [$this->getMockExpr()]], 'pushAll()' => ['pushAll', [['value1', 'value2']]], 'addToSet() with value' => ['addToSet', ['value']], 'addToSet() with Expr' => ['addToSet', [$this->getMockExpr()]], 'addManyToSet()' => ['addManyToSet', [['value1', 'value2']]], 'popFirst()' => ['popFirst'], 'popLast()' => ['popLast'], 'pull()' => ['pull', ['value']], 'pullAll()' => ['pullAll', [['value1', 'value2']]], 'addAnd() array' => ['addAnd', [[]]], 'addAnd() Expr' => ['addAnd', [$this->getMockExpr()]], 'addOr() array' => ['addOr', [[]]], 'addOr() Expr' => ['addOr', [$this->getMockExpr()]], 'addNor() array' => ['addNor', [[]]], 'addNor() Expr' => ['addNor', [$this->getMockExpr()]], 'elemMatch() array' => ['elemMatch', [[]]], 'elemMatch() Expr' => ['elemMatch', [$this->getMockExpr()]], 'not()' => ['not', [$this->getMockExpr()]], 'language()' => ['language', ['en']], 'caseSensitive()' => ['caseSensitive', [true]], 'diacriticSensitive()' => ['diacriticSensitive', [true]], 'text()' => ['text', ['foo']], 'max()' => ['max', [1]], 'min()' => ['min', [1]], 'comment()' => ['comment', ['A comment explaining what the query does']], 'bitsAllClear()' => ['bitsAllClear', [5]], 'bitsAllSet()' => ['bitsAllSet', [5]], 'bitsAnyClear()' => ['bitsAnyClear', [5]], 'bitsAnySet()' => ['bitsAnySet', [5]]];
    }
BuilderTest