Commit 94a803d8 authored by Fabien Villepinte's avatar Fabien Villepinte Committed by Jeremy Mikola

Fix unresolved class references in doc blocks

PhpStorm (and possibly other IDEs) must be able to resolve the class name in order to process these references. We can use FQCNs instead of adding "use" statements.
parent 0a979b22
......@@ -10,7 +10,7 @@ namespace MongoDB\Model;
* collection. It provides methods to access options for the collection.
*
* @api
* @see MongoDB\Database::listCollections()
* @see \MongoDB\Database::listCollections()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
*/
class CollectionInfo
......
......@@ -11,7 +11,7 @@ use IteratorIterator;
* command.
*
* @internal
* @see MongoDB\Database::listCollections()
* @see \MongoDB\Database::listCollections()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
* @see http://docs.mongodb.org/manual/reference/command/listCollections/
*/
......
......@@ -10,7 +10,7 @@ use Iterator;
* This iterator is used for enumerating collections in a database.
*
* @api
* @see MongoDB\Database::listCollections()
* @see \MongoDB\Database::listCollections()
*/
interface CollectionInfoIterator extends Iterator
{
......
......@@ -16,7 +16,7 @@ use Traversable;
* the listCollections command.
*
* @internal
* @see MongoDB\Database::listCollections()
* @see \MongoDB\Database::listCollections()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
* @see http://docs.mongodb.org/manual/reference/command/listCollections/
* @see http://docs.mongodb.org/manual/reference/system-collections/
......
......@@ -9,7 +9,7 @@ namespace MongoDB\Model;
* command. It provides methods to access common database properties.
*
* @api
* @see MongoDB\Client::listDatabases()
* @see \MongoDB\Client::listDatabases()
* @see http://docs.mongodb.org/manual/reference/command/listDatabases/
*/
class DatabaseInfo
......
......@@ -10,7 +10,7 @@ use Iterator;
* This iterator is used for enumerating databases on a server.
*
* @api
* @see MongoDB\Client::listDatabases()
* @see \MongoDB\Client::listDatabases()
*/
interface DatabaseInfoIterator extends Iterator
{
......
......@@ -9,7 +9,7 @@ namespace MongoDB\Model;
* command's single-document result.
*
* @internal
* @see MongoDB\Client::listDatabases()
* @see \MongoDB\Client::listDatabases()
* @see http://docs.mongodb.org/manual/reference/command/listDatabases/
*/
class DatabaseInfoLegacyIterator implements DatabaseInfoIterator
......
......@@ -16,7 +16,7 @@ use ArrayAccess;
* db.collection.createIndex() documentation.
*
* @api
* @see MongoDB\Collection::listIndexes()
* @see \MongoDB\Collection::listIndexes()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst
* @see http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/
*/
......
......@@ -10,7 +10,7 @@ use Iterator;
* This iterator is used for enumerating indexes in a collection.
*
* @api
* @see MongoDB\Collection::listIndexes()
* @see \MongoDB\Collection::listIndexes()
*/
interface IndexInfoIterator extends Iterator
{
......
......@@ -12,7 +12,7 @@ use IteratorIterator;
* collection.
*
* @internal
* @see MongoDB\Collection::listIndexes()
* @see \MongoDB\Collection::listIndexes()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst
* @see http://docs.mongodb.org/manual/reference/command/listIndexes/
* @see http://docs.mongodb.org/manual/reference/system-collections/
......
......@@ -11,7 +11,7 @@ use MongoDB\Exception\InvalidArgumentException;
* This class is used to validate user input for index creation.
*
* @internal
* @see MongoDB\Collection::createIndexes()
* @see \MongoDB\Collection::createIndexes()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst
* @see http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/
*/
......@@ -73,7 +73,7 @@ class IndexInput implements Serializable
/**
* Serialize the index information to BSON for index creation.
*
* @see MongoDB\Collection::createIndexes()
* @see \MongoDB\Collection::createIndexes()
* @see http://php.net/mongodb-bson-serializable.bsonserialize
* @return array
*/
......
......@@ -16,7 +16,7 @@ use Traversable;
* Operation for the aggregate command.
*
* @api
* @see MongoDB\Collection::aggregate()
* @see \MongoDB\Collection::aggregate()
* @see http://docs.mongodb.org/manual/reference/command/aggregate/
*/
class Aggregate implements Executable
......
......@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for executing multiple write operations.
*
* @api
* @see MongoDB\Collection::bulkWrite()
* @see \MongoDB\Collection::bulkWrite()
*/
class BulkWrite implements Executable
{
......
......@@ -13,7 +13,7 @@ use MongoDB\Exception\UnexpectedValueException;
* Operation for the count command.
*
* @api
* @see MongoDB\Collection::count()
* @see \MongoDB\Collection::count()
* @see http://docs.mongodb.org/manual/reference/command/count/
*/
class Count implements Executable
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the create command.
*
* @api
* @see MongoDB\Database::createCollection()
* @see \MongoDB\Database::createCollection()
* @see http://docs.mongodb.org/manual/reference/command/create/
*/
class CreateCollection implements Executable
......
......@@ -13,8 +13,8 @@ use MongoDB\Model\IndexInput;
* Operation for the createIndexes command.
*
* @api
* @see MongoDB\Collection::createIndex()
* @see MongoDB\Collection::createIndexes()
* @see \MongoDB\Collection::createIndex()
* @see \MongoDB\Collection::createIndexes()
* @see http://docs.mongodb.org/manual/reference/command/createIndexes/
*/
class CreateIndexes implements Executable
......
......@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for executing a database command.
*
* @api
* @see MongoDB\Database::command()
* @see \MongoDB\Database::command()
*/
class DatabaseCommand implements Executable
{
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for deleting multiple document with the delete command.
*
* @api
* @see MongoDB\Collection::deleteOne()
* @see \MongoDB\Collection::deleteOne()
* @see http://docs.mongodb.org/manual/reference/command/delete/
*/
class DeleteMany implements Executable
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for deleting a single document with the delete command.
*
* @api
* @see MongoDB\Collection::deleteOne()
* @see \MongoDB\Collection::deleteOne()
* @see http://docs.mongodb.org/manual/reference/command/delete/
*/
class DeleteOne implements Executable
......
......@@ -13,7 +13,7 @@ use MongoDB\Exception\UnexpectedValueException;
* Operation for the distinct command.
*
* @api
* @see MongoDB\Collection::distinct()
* @see \MongoDB\Collection::distinct()
* @see http://docs.mongodb.org/manual/reference/command/distinct/
*/
class Distinct implements Executable
......
......@@ -11,8 +11,8 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the drop command.
*
* @api
* @see MongoDB\Collection::drop()
* @see MongoDB\Database::dropCollection()
* @see \MongoDB\Collection::drop()
* @see \MongoDB\Database::dropCollection()
* @see http://docs.mongodb.org/manual/reference/command/drop/
*/
class DropCollection implements Executable
......
......@@ -10,8 +10,8 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the dropDatabase command.
*
* @api
* @see MongoDB\Client::dropDatabase()
* @see MongoDB\Database::drop()
* @see \MongoDB\Client::dropDatabase()
* @see \MongoDB\Database::drop()
* @see http://docs.mongodb.org/manual/reference/command/dropDatabase/
*/
class DropDatabase implements Executable
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the dropIndexes command.
*
* @api
* @see MongoDB\Collection::dropIndexes()
* @see \MongoDB\Collection::dropIndexes()
* @see http://docs.mongodb.org/manual/reference/command/dropIndexes/
*/
class DropIndexes implements Executable
......
......@@ -13,7 +13,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the find command.
*
* @api
* @see MongoDB\Collection::find()
* @see \MongoDB\Collection::find()
* @see http://docs.mongodb.org/manual/tutorial/query-documents/
* @see http://docs.mongodb.org/manual/reference/operator/query-modifier/
*/
......
......@@ -9,7 +9,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for finding a single document with the find command.
*
* @api
* @see MongoDB\Collection::findOne()
* @see \MongoDB\Collection::findOne()
* @see http://docs.mongodb.org/manual/tutorial/query-documents/
* @see http://docs.mongodb.org/manual/reference/operator/query-modifier/
*/
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for deleting a document with the findAndModify command.
*
* @api
* @see MongoDB\Collection::findOneAndDelete()
* @see \MongoDB\Collection::findOneAndDelete()
* @see http://docs.mongodb.org/manual/reference/command/findAndModify/
*/
class FindOneAndDelete implements Executable
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for replacing a document with the findAndModify command.
*
* @api
* @see MongoDB\Collection::findOneAndReplace()
* @see \MongoDB\Collection::findOneAndReplace()
* @see http://docs.mongodb.org/manual/reference/command/findAndModify/
*/
class FindOneAndReplace implements Executable
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for updating a document with the findAndModify command.
*
* @api
* @see MongoDB\Collection::findOneAndUpdate()
* @see \MongoDB\Collection::findOneAndUpdate()
* @see http://docs.mongodb.org/manual/reference/command/findAndModify/
*/
class FindOneAndUpdate implements Executable
......
......@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for inserting multiple documents with the insert command.
*
* @api
* @see MongoDB\Collection::insertMany()
* @see \MongoDB\Collection::insertMany()
* @see http://docs.mongodb.org/manual/reference/command/insert/
*/
class InsertMany implements Executable
......
......@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for inserting a single document with the insert command.
*
* @api
* @see MongoDB\Collection::insertOne()
* @see \MongoDB\Collection::insertOne()
* @see http://docs.mongodb.org/manual/reference/command/insert/
*/
class InsertOne implements Executable
......
......@@ -14,7 +14,7 @@ use MongoDB\Model\CollectionInfoLegacyIterator;
* Operation for the listCollections command.
*
* @api
* @see MongoDB\Database::listCollections()
* @see \MongoDB\Database::listCollections()
* @see http://docs.mongodb.org/manual/reference/command/listCollections/
*/
class ListCollections implements Executable
......
......@@ -13,7 +13,7 @@ use MongoDB\Model\DatabaseInfoLegacyIterator;
* Operation for the ListDatabases command.
*
* @api
* @see MongoDB\Client::listDatabases()
* @see \MongoDB\Client::listDatabases()
* @see http://docs.mongodb.org/manual/reference/command/ListDatabases/
*/
class ListDatabases implements Executable
......
......@@ -15,7 +15,7 @@ use EmptyIterator;
* Operation for the listIndexes command.
*
* @api
* @see MongoDB\Collection::listIndexes()
* @see \MongoDB\Collection::listIndexes()
* @see http://docs.mongodb.org/manual/reference/command/listIndexes/
*/
class ListIndexes implements Executable
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for replacing a single document with the update command.
*
* @api
* @see MongoDB\Collection::replaceOne()
* @see \MongoDB\Collection::replaceOne()
* @see http://docs.mongodb.org/manual/reference/command/update/
*/
class ReplaceOne implements Executable
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for updating multiple documents with the update command.
*
* @api
* @see MongoDB\Collection::updateMany()
* @see \MongoDB\Collection::updateMany()
* @see http://docs.mongodb.org/manual/reference/command/update/
*/
class UpdateMany implements Executable
......
......@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for updating a single document with the update command.
*
* @api
* @see MongoDB\Collection::updateOne()
* @see \MongoDB\Collection::updateOne()
* @see http://docs.mongodb.org/manual/reference/command/update/
*/
class UpdateOne implements Executable
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment