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; ...@@ -10,7 +10,7 @@ namespace MongoDB\Model;
* collection. It provides methods to access options for the collection. * collection. It provides methods to access options for the collection.
* *
* @api * @api
* @see MongoDB\Database::listCollections() * @see \MongoDB\Database::listCollections()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst * @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
*/ */
class CollectionInfo class CollectionInfo
......
...@@ -11,7 +11,7 @@ use IteratorIterator; ...@@ -11,7 +11,7 @@ use IteratorIterator;
* command. * command.
* *
* @internal * @internal
* @see MongoDB\Database::listCollections() * @see \MongoDB\Database::listCollections()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst * @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/command/listCollections/
*/ */
......
...@@ -10,7 +10,7 @@ use Iterator; ...@@ -10,7 +10,7 @@ use Iterator;
* This iterator is used for enumerating collections in a database. * This iterator is used for enumerating collections in a database.
* *
* @api * @api
* @see MongoDB\Database::listCollections() * @see \MongoDB\Database::listCollections()
*/ */
interface CollectionInfoIterator extends Iterator interface CollectionInfoIterator extends Iterator
{ {
......
...@@ -16,7 +16,7 @@ use Traversable; ...@@ -16,7 +16,7 @@ use Traversable;
* the listCollections command. * the listCollections command.
* *
* @internal * @internal
* @see MongoDB\Database::listCollections() * @see \MongoDB\Database::listCollections()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst * @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/command/listCollections/
* @see http://docs.mongodb.org/manual/reference/system-collections/ * @see http://docs.mongodb.org/manual/reference/system-collections/
......
...@@ -9,7 +9,7 @@ namespace MongoDB\Model; ...@@ -9,7 +9,7 @@ namespace MongoDB\Model;
* command. It provides methods to access common database properties. * command. It provides methods to access common database properties.
* *
* @api * @api
* @see MongoDB\Client::listDatabases() * @see \MongoDB\Client::listDatabases()
* @see http://docs.mongodb.org/manual/reference/command/listDatabases/ * @see http://docs.mongodb.org/manual/reference/command/listDatabases/
*/ */
class DatabaseInfo class DatabaseInfo
......
...@@ -10,7 +10,7 @@ use Iterator; ...@@ -10,7 +10,7 @@ use Iterator;
* This iterator is used for enumerating databases on a server. * This iterator is used for enumerating databases on a server.
* *
* @api * @api
* @see MongoDB\Client::listDatabases() * @see \MongoDB\Client::listDatabases()
*/ */
interface DatabaseInfoIterator extends Iterator interface DatabaseInfoIterator extends Iterator
{ {
......
...@@ -9,7 +9,7 @@ namespace MongoDB\Model; ...@@ -9,7 +9,7 @@ namespace MongoDB\Model;
* command's single-document result. * command's single-document result.
* *
* @internal * @internal
* @see MongoDB\Client::listDatabases() * @see \MongoDB\Client::listDatabases()
* @see http://docs.mongodb.org/manual/reference/command/listDatabases/ * @see http://docs.mongodb.org/manual/reference/command/listDatabases/
*/ */
class DatabaseInfoLegacyIterator implements DatabaseInfoIterator class DatabaseInfoLegacyIterator implements DatabaseInfoIterator
......
...@@ -16,7 +16,7 @@ use ArrayAccess; ...@@ -16,7 +16,7 @@ use ArrayAccess;
* db.collection.createIndex() documentation. * db.collection.createIndex() documentation.
* *
* @api * @api
* @see MongoDB\Collection::listIndexes() * @see \MongoDB\Collection::listIndexes()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst * @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst
* @see http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/ * @see http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/
*/ */
......
...@@ -10,7 +10,7 @@ use Iterator; ...@@ -10,7 +10,7 @@ use Iterator;
* This iterator is used for enumerating indexes in a collection. * This iterator is used for enumerating indexes in a collection.
* *
* @api * @api
* @see MongoDB\Collection::listIndexes() * @see \MongoDB\Collection::listIndexes()
*/ */
interface IndexInfoIterator extends Iterator interface IndexInfoIterator extends Iterator
{ {
......
...@@ -12,7 +12,7 @@ use IteratorIterator; ...@@ -12,7 +12,7 @@ use IteratorIterator;
* collection. * collection.
* *
* @internal * @internal
* @see MongoDB\Collection::listIndexes() * @see \MongoDB\Collection::listIndexes()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst * @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/command/listIndexes/
* @see http://docs.mongodb.org/manual/reference/system-collections/ * @see http://docs.mongodb.org/manual/reference/system-collections/
......
...@@ -11,7 +11,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -11,7 +11,7 @@ use MongoDB\Exception\InvalidArgumentException;
* This class is used to validate user input for index creation. * This class is used to validate user input for index creation.
* *
* @internal * @internal
* @see MongoDB\Collection::createIndexes() * @see \MongoDB\Collection::createIndexes()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst * @see https://github.com/mongodb/specifications/blob/master/source/enumerate-indexes.rst
* @see http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/ * @see http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/
*/ */
...@@ -73,7 +73,7 @@ class IndexInput implements Serializable ...@@ -73,7 +73,7 @@ class IndexInput implements Serializable
/** /**
* Serialize the index information to BSON for index creation. * 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 * @see http://php.net/mongodb-bson-serializable.bsonserialize
* @return array * @return array
*/ */
......
...@@ -16,7 +16,7 @@ use Traversable; ...@@ -16,7 +16,7 @@ use Traversable;
* Operation for the aggregate command. * Operation for the aggregate command.
* *
* @api * @api
* @see MongoDB\Collection::aggregate() * @see \MongoDB\Collection::aggregate()
* @see http://docs.mongodb.org/manual/reference/command/aggregate/ * @see http://docs.mongodb.org/manual/reference/command/aggregate/
*/ */
class Aggregate implements Executable class Aggregate implements Executable
......
...@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for executing multiple write operations. * Operation for executing multiple write operations.
* *
* @api * @api
* @see MongoDB\Collection::bulkWrite() * @see \MongoDB\Collection::bulkWrite()
*/ */
class BulkWrite implements Executable class BulkWrite implements Executable
{ {
......
...@@ -13,7 +13,7 @@ use MongoDB\Exception\UnexpectedValueException; ...@@ -13,7 +13,7 @@ use MongoDB\Exception\UnexpectedValueException;
* Operation for the count command. * Operation for the count command.
* *
* @api * @api
* @see MongoDB\Collection::count() * @see \MongoDB\Collection::count()
* @see http://docs.mongodb.org/manual/reference/command/count/ * @see http://docs.mongodb.org/manual/reference/command/count/
*/ */
class Count implements Executable class Count implements Executable
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the create command. * Operation for the create command.
* *
* @api * @api
* @see MongoDB\Database::createCollection() * @see \MongoDB\Database::createCollection()
* @see http://docs.mongodb.org/manual/reference/command/create/ * @see http://docs.mongodb.org/manual/reference/command/create/
*/ */
class CreateCollection implements Executable class CreateCollection implements Executable
......
...@@ -13,8 +13,8 @@ use MongoDB\Model\IndexInput; ...@@ -13,8 +13,8 @@ use MongoDB\Model\IndexInput;
* Operation for the createIndexes command. * Operation for the createIndexes command.
* *
* @api * @api
* @see MongoDB\Collection::createIndex() * @see \MongoDB\Collection::createIndex()
* @see MongoDB\Collection::createIndexes() * @see \MongoDB\Collection::createIndexes()
* @see http://docs.mongodb.org/manual/reference/command/createIndexes/ * @see http://docs.mongodb.org/manual/reference/command/createIndexes/
*/ */
class CreateIndexes implements Executable class CreateIndexes implements Executable
......
...@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for executing a database command. * Operation for executing a database command.
* *
* @api * @api
* @see MongoDB\Database::command() * @see \MongoDB\Database::command()
*/ */
class DatabaseCommand implements Executable class DatabaseCommand implements Executable
{ {
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for deleting multiple document with the delete command. * Operation for deleting multiple document with the delete command.
* *
* @api * @api
* @see MongoDB\Collection::deleteOne() * @see \MongoDB\Collection::deleteOne()
* @see http://docs.mongodb.org/manual/reference/command/delete/ * @see http://docs.mongodb.org/manual/reference/command/delete/
*/ */
class DeleteMany implements Executable class DeleteMany implements Executable
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for deleting a single document with the delete command. * Operation for deleting a single document with the delete command.
* *
* @api * @api
* @see MongoDB\Collection::deleteOne() * @see \MongoDB\Collection::deleteOne()
* @see http://docs.mongodb.org/manual/reference/command/delete/ * @see http://docs.mongodb.org/manual/reference/command/delete/
*/ */
class DeleteOne implements Executable class DeleteOne implements Executable
......
...@@ -13,7 +13,7 @@ use MongoDB\Exception\UnexpectedValueException; ...@@ -13,7 +13,7 @@ use MongoDB\Exception\UnexpectedValueException;
* Operation for the distinct command. * Operation for the distinct command.
* *
* @api * @api
* @see MongoDB\Collection::distinct() * @see \MongoDB\Collection::distinct()
* @see http://docs.mongodb.org/manual/reference/command/distinct/ * @see http://docs.mongodb.org/manual/reference/command/distinct/
*/ */
class Distinct implements Executable class Distinct implements Executable
......
...@@ -11,8 +11,8 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -11,8 +11,8 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the drop command. * Operation for the drop command.
* *
* @api * @api
* @see MongoDB\Collection::drop() * @see \MongoDB\Collection::drop()
* @see MongoDB\Database::dropCollection() * @see \MongoDB\Database::dropCollection()
* @see http://docs.mongodb.org/manual/reference/command/drop/ * @see http://docs.mongodb.org/manual/reference/command/drop/
*/ */
class DropCollection implements Executable class DropCollection implements Executable
......
...@@ -10,8 +10,8 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,8 +10,8 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the dropDatabase command. * Operation for the dropDatabase command.
* *
* @api * @api
* @see MongoDB\Client::dropDatabase() * @see \MongoDB\Client::dropDatabase()
* @see MongoDB\Database::drop() * @see \MongoDB\Database::drop()
* @see http://docs.mongodb.org/manual/reference/command/dropDatabase/ * @see http://docs.mongodb.org/manual/reference/command/dropDatabase/
*/ */
class DropDatabase implements Executable class DropDatabase implements Executable
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the dropIndexes command. * Operation for the dropIndexes command.
* *
* @api * @api
* @see MongoDB\Collection::dropIndexes() * @see \MongoDB\Collection::dropIndexes()
* @see http://docs.mongodb.org/manual/reference/command/dropIndexes/ * @see http://docs.mongodb.org/manual/reference/command/dropIndexes/
*/ */
class DropIndexes implements Executable class DropIndexes implements Executable
......
...@@ -13,7 +13,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -13,7 +13,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for the find command. * Operation for the find command.
* *
* @api * @api
* @see MongoDB\Collection::find() * @see \MongoDB\Collection::find()
* @see http://docs.mongodb.org/manual/tutorial/query-documents/ * @see http://docs.mongodb.org/manual/tutorial/query-documents/
* @see http://docs.mongodb.org/manual/reference/operator/query-modifier/ * @see http://docs.mongodb.org/manual/reference/operator/query-modifier/
*/ */
......
...@@ -9,7 +9,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -9,7 +9,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for finding a single document with the find command. * Operation for finding a single document with the find command.
* *
* @api * @api
* @see MongoDB\Collection::findOne() * @see \MongoDB\Collection::findOne()
* @see http://docs.mongodb.org/manual/tutorial/query-documents/ * @see http://docs.mongodb.org/manual/tutorial/query-documents/
* @see http://docs.mongodb.org/manual/reference/operator/query-modifier/ * @see http://docs.mongodb.org/manual/reference/operator/query-modifier/
*/ */
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for deleting a document with the findAndModify command. * Operation for deleting a document with the findAndModify command.
* *
* @api * @api
* @see MongoDB\Collection::findOneAndDelete() * @see \MongoDB\Collection::findOneAndDelete()
* @see http://docs.mongodb.org/manual/reference/command/findAndModify/ * @see http://docs.mongodb.org/manual/reference/command/findAndModify/
*/ */
class FindOneAndDelete implements Executable class FindOneAndDelete implements Executable
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for replacing a document with the findAndModify command. * Operation for replacing a document with the findAndModify command.
* *
* @api * @api
* @see MongoDB\Collection::findOneAndReplace() * @see \MongoDB\Collection::findOneAndReplace()
* @see http://docs.mongodb.org/manual/reference/command/findAndModify/ * @see http://docs.mongodb.org/manual/reference/command/findAndModify/
*/ */
class FindOneAndReplace implements Executable class FindOneAndReplace implements Executable
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for updating a document with the findAndModify command. * Operation for updating a document with the findAndModify command.
* *
* @api * @api
* @see MongoDB\Collection::findOneAndUpdate() * @see \MongoDB\Collection::findOneAndUpdate()
* @see http://docs.mongodb.org/manual/reference/command/findAndModify/ * @see http://docs.mongodb.org/manual/reference/command/findAndModify/
*/ */
class FindOneAndUpdate implements Executable class FindOneAndUpdate implements Executable
......
...@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for inserting multiple documents with the insert command. * Operation for inserting multiple documents with the insert command.
* *
* @api * @api
* @see MongoDB\Collection::insertMany() * @see \MongoDB\Collection::insertMany()
* @see http://docs.mongodb.org/manual/reference/command/insert/ * @see http://docs.mongodb.org/manual/reference/command/insert/
*/ */
class InsertMany implements Executable class InsertMany implements Executable
......
...@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -12,7 +12,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for inserting a single document with the insert command. * Operation for inserting a single document with the insert command.
* *
* @api * @api
* @see MongoDB\Collection::insertOne() * @see \MongoDB\Collection::insertOne()
* @see http://docs.mongodb.org/manual/reference/command/insert/ * @see http://docs.mongodb.org/manual/reference/command/insert/
*/ */
class InsertOne implements Executable class InsertOne implements Executable
......
...@@ -14,7 +14,7 @@ use MongoDB\Model\CollectionInfoLegacyIterator; ...@@ -14,7 +14,7 @@ use MongoDB\Model\CollectionInfoLegacyIterator;
* Operation for the listCollections command. * Operation for the listCollections command.
* *
* @api * @api
* @see MongoDB\Database::listCollections() * @see \MongoDB\Database::listCollections()
* @see http://docs.mongodb.org/manual/reference/command/listCollections/ * @see http://docs.mongodb.org/manual/reference/command/listCollections/
*/ */
class ListCollections implements Executable class ListCollections implements Executable
......
...@@ -13,7 +13,7 @@ use MongoDB\Model\DatabaseInfoLegacyIterator; ...@@ -13,7 +13,7 @@ use MongoDB\Model\DatabaseInfoLegacyIterator;
* Operation for the ListDatabases command. * Operation for the ListDatabases command.
* *
* @api * @api
* @see MongoDB\Client::listDatabases() * @see \MongoDB\Client::listDatabases()
* @see http://docs.mongodb.org/manual/reference/command/ListDatabases/ * @see http://docs.mongodb.org/manual/reference/command/ListDatabases/
*/ */
class ListDatabases implements Executable class ListDatabases implements Executable
......
...@@ -15,7 +15,7 @@ use EmptyIterator; ...@@ -15,7 +15,7 @@ use EmptyIterator;
* Operation for the listIndexes command. * Operation for the listIndexes command.
* *
* @api * @api
* @see MongoDB\Collection::listIndexes() * @see \MongoDB\Collection::listIndexes()
* @see http://docs.mongodb.org/manual/reference/command/listIndexes/ * @see http://docs.mongodb.org/manual/reference/command/listIndexes/
*/ */
class ListIndexes implements Executable class ListIndexes implements Executable
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for replacing a single document with the update command. * Operation for replacing a single document with the update command.
* *
* @api * @api
* @see MongoDB\Collection::replaceOne() * @see \MongoDB\Collection::replaceOne()
* @see http://docs.mongodb.org/manual/reference/command/update/ * @see http://docs.mongodb.org/manual/reference/command/update/
*/ */
class ReplaceOne implements Executable class ReplaceOne implements Executable
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for updating multiple documents with the update command. * Operation for updating multiple documents with the update command.
* *
* @api * @api
* @see MongoDB\Collection::updateMany() * @see \MongoDB\Collection::updateMany()
* @see http://docs.mongodb.org/manual/reference/command/update/ * @see http://docs.mongodb.org/manual/reference/command/update/
*/ */
class UpdateMany implements Executable class UpdateMany implements Executable
......
...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException; ...@@ -10,7 +10,7 @@ use MongoDB\Exception\InvalidArgumentException;
* Operation for updating a single document with the update command. * Operation for updating a single document with the update command.
* *
* @api * @api
* @see MongoDB\Collection::updateOne() * @see \MongoDB\Collection::updateOne()
* @see http://docs.mongodb.org/manual/reference/command/update/ * @see http://docs.mongodb.org/manual/reference/command/update/
*/ */
class UpdateOne implements Executable 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