Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from spdionis/@method-annotations
Browse files Browse the repository at this point in the history
add @method annotations for IDE auto-completions and inspections
  • Loading branch information
michaelmoussa committed Jan 2, 2015
2 parents 5fddd8c + 96572d4 commit 604f4c9
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 0 deletions.
91 changes: 91 additions & 0 deletions src/Test/ODM/MongoDB/QueryBuilderMocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,97 @@

/**
* Mocks Doctrine MongoDB ODM QueryBuilder fluent interface invocations for use in PHPUnit tests.
* \Doctrine\ODM\MongoDB\Query\Query
* @method requireIndexes
* @method field
* @method prime
* @method hydrate
* @method refresh
* @method find
* @method findAndUpdate
* @method returnNew
* @method findAndRemove
* @method update
* @method insert
* @method remove
* @method references
* @method includesReferenceTo
* @method getQuery
* @method addAnd
* @method addManyToSet
* @method addNor
* @method addOr
* @method addToSet
* @method all
* @method count
* @method distanceMultiplier
* @method distinct
* @method eagerCursor
* @method elemMatch
* @method equals
* @method exclude
* @method exists
* @method finalize
* @method geoIntersects
* @method geoNear
* @method geoWithin
* @method geoWithinBox
* @method geoWithinCenter
* @method geoWithinCenterSpher
* @method geoWithinPolygon
* @method getNewObj
* @method setNewObj
* @method setQueryArray
* @method group
* @method gt
* @method gte
* @method hint
* @method immortal
* @method in
* @method inc
* @method limit
* @method lt
* @method lte
* @method map
* @method mapReduce
* @method mapReduceOptions
* @method maxDistance
* @method mod
* @method multiple
* @method near
* @method nearSphere
* @method not
* @method notEqual
* @method notIn
* @method out
* @method popFirst
* @method popLast
* @method pull
* @method pullAll
* @method push
* @method pushAll
* @method range
* @method reduce
* @method rename
* @method select
* @method selectElemMatch
* @method selectSlice
* @method set
* @method setReadPreference
* @method size
* @method skip
* @method slaveOkay
* @method snapshot
* @method sort
* @method spherical
* @method type
* @method unsetField
* @method upsert
* @method where
* @method withinBox
* @method withinCenter
* @method withinCenterSphere
* @method withinPolygon
*/
class QueryBuilderMocker extends BaseQueryBuilderMocker
{
Expand Down
28 changes: 28 additions & 0 deletions src/Test/ORM/QueryBuilderMocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,34 @@

/**
* Mocks Doctrine ORM QueryBuilder fluent interface invocations for use in PHPUnit tests.
* @method \Doctrine\ORM\Query getQuery
* @method $this setParameter
* @method $this setParameters
* @method $this setFirstResult
* @method $this setMaxResults
* @method $this add
* @method $this select
* @method $this distinct
* @method $this addSelect
* @method $this delete
* @method $this update
* @method $this from
* @method $this join
* @method $this innerJoin
* @method $this leftJoin
* @method $this set
* @method $this where
* @method $this andWhere
* @method $this orWhere
* @method $this groupBy
* @method $this addGroupBy
* @method $this having
* @method $this andHaving
* @method $this orHaving
* @method $this orderBy
* @method $this addOrderBy
* @method $this addCriteria
* @method $this useResultCache
*/
class QueryBuilderMocker extends BaseQueryBuilderMocker
{
Expand Down

0 comments on commit 604f4c9

Please sign in to comment.