Просмотр исходного кода

Return annotation from constructors

Andreas Braun 10 лет назад
Родитель
Сommit
b7d2c1c306

+ 0 - 1
lib/Mongo/MongoDB.php

@@ -55,7 +55,6 @@ class MongoDB
      * @param MongoClient $conn Database connection.
      * @param string $name Database name.
      * @throws Exception
-     * @return MongoDB Returns the database.
      */
     public function __construct(MongoClient $conn, $name)
     {

+ 0 - 1
lib/Mongo/MongoDate.php

@@ -36,7 +36,6 @@ class MongoDate implements TypeInterface
      * @link http://php.net/manual/en/mongodate.construct.php
      * @param int $sec Number of seconds since January 1st, 1970
      * @param int $usec Microseconds
-     * @return MongoDate Returns this new date
      */
     public function __construct($sec = 0, $usec = 0)
     {

+ 0 - 1
lib/Mongo/MongoGridFS.php

@@ -54,7 +54,6 @@ class MongoGridFS extends MongoCollection
      * @param MongoDB $db Database
      * @param string $prefix [optional] <p>Optional collection name prefix.</p>
      * @param mixed $chunks  [optional]
-     * @return MongoGridFS
      * @throws \Exception
      */
     public function __construct(MongoDB $db, $prefix = "fs", $chunks = null)

+ 0 - 1
lib/Mongo/MongoGridFSCursor.php

@@ -36,7 +36,6 @@ class MongoGridFSCursor extends MongoCursor
      * @param string $ns Full name of database and collection
      * @param array $query Database query
      * @param array $fields Fields to return
-     * @return MongoGridFSCursor Returns the new cursor
      */
     public function __construct(MongoGridFS $gridfs, MongoClient $connection, $ns, array $query = array(), array $fields = array())
     {

+ 0 - 1
lib/Mongo/MongoGridFSFile.php

@@ -32,7 +32,6 @@ class MongoGridFSFile
      *
      * @param MongoGridFS $gridfs The parent MongoGridFS instance
      * @param array $file A file from the database
-     * @return MongoGridFSFile Returns a new MongoGridFSFile
      */
     public function __construct(MongoGridFS $gridfs, array $file)
     {

+ 0 - 1
lib/Mongo/MongoId.php

@@ -29,7 +29,6 @@ class MongoId implements Serializable, TypeInterface
      *
      * @link http://www.php.net/manual/en/mongoid.construct.php
      * @param string $id [optional] A string to use as the id. Must be 24 hexidecimal characters. If an invalid string is passed to this constructor, the constructor will ignore it and create a new id value.
-     * @return MongoId
      *
      * @throws MongoException
      */

+ 0 - 1
lib/Mongo/MongoRegex.php

@@ -33,7 +33,6 @@ class MongoRegex implements TypeInterface
      *
      * @link http://php.net/manual/en/mongoregex.construct.php
      * @param string|Regex $regex Regular expression string of the form /expr/flags
-     * @return MongoRegex Returns a new regular expression
      */
     public function __construct($regex)
     {