@@ -13,7 +13,8 @@ discard block |
||
| 13 | 13 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -class MongoLog { |
|
| 16 | +class MongoLog |
|
| 17 | +{ |
|
| 17 | 18 | /** |
| 18 | 19 | * @link http://php.net/manual/en/class.mongolog.php#mongolog.constants.none |
| 19 | 20 | */ |
@@ -99,7 +100,9 @@ discard block |
||
| 99 | 100 | * <ul> |
| 100 | 101 | * @return boolean Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. |
| 101 | 102 | */ |
| 102 | - public static function setCallback ( callable $log_function ) {} |
|
| 103 | + public static function setCallback ( callable $log_function ) |
|
| 104 | + { |
|
| 105 | +} |
|
| 103 | 106 | |
| 104 | 107 | /** |
| 105 | 108 | * This function can be used to set how verbose logging should be and the types of |
@@ -111,7 +114,9 @@ discard block |
||
| 111 | 114 | * @param int $level The levels you would like to log |
| 112 | 115 | * @return void |
| 113 | 116 | */ |
| 114 | - public static function setLevel($level) {} |
|
| 117 | + public static function setLevel($level) |
|
| 118 | + { |
|
| 119 | +} |
|
| 115 | 120 | |
| 116 | 121 | /** |
| 117 | 122 | * This can be used to see the log level. Use the constants described in the |
@@ -121,7 +126,9 @@ discard block |
||
| 121 | 126 | * @static |
| 122 | 127 | * @return int Returns the current level |
| 123 | 128 | */ |
| 124 | - public static function getLevel() {} |
|
| 129 | + public static function getLevel() |
|
| 130 | + { |
|
| 131 | +} |
|
| 125 | 132 | |
| 126 | 133 | /** |
| 127 | 134 | * This function can be used to set which parts of the driver's functionality |
@@ -133,7 +140,9 @@ discard block |
||
| 133 | 140 | * @param int $module The module(s) you would like to log |
| 134 | 141 | * @return void |
| 135 | 142 | */ |
| 136 | - public static function setModule($module) {} |
|
| 143 | + public static function setModule($module) |
|
| 144 | + { |
|
| 145 | +} |
|
| 137 | 146 | |
| 138 | 147 | /** |
| 139 | 148 | * This function can be used to see which parts of the driver's functionality are |
@@ -144,5 +153,7 @@ discard block |
||
| 144 | 153 | * @static |
| 145 | 154 | * @return int Returns the modules currently being logged |
| 146 | 155 | */ |
| 147 | - public static function getModule() {} |
|
| 156 | + public static function getModule() |
|
| 157 | + { |
|
| 158 | +} |
|
| 148 | 159 | } |
@@ -13,7 +13,8 @@ discard block |
||
| 13 | 13 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -class MongoPool { |
|
| 16 | +class MongoPool |
|
| 17 | +{ |
|
| 17 | 18 | /** |
| 18 | 19 | * Returns an array of information about all connection pools. |
| 19 | 20 | * |
@@ -40,7 +41,9 @@ discard block |
||
| 40 | 41 | * keeps increasing, you may want to use MongoPool::setSize to add more connections |
| 41 | 42 | * to your pool |
| 42 | 43 | */ |
| 43 | - public static function info() {} |
|
| 44 | + public static function info() |
|
| 45 | + { |
|
| 46 | +} |
|
| 44 | 47 | |
| 45 | 48 | /** |
| 46 | 49 | * Sets the max number of connections new pools will be able to create. |
@@ -52,7 +55,9 @@ discard block |
||
| 52 | 55 | * connections |
| 53 | 56 | * @return boolean Returns the former value of pool size |
| 54 | 57 | */ |
| 55 | - public static function setSize($size) {} |
|
| 58 | + public static function setSize($size) |
|
| 59 | + { |
|
| 60 | +} |
|
| 56 | 61 | |
| 57 | 62 | /** |
| 58 | 63 | * . |
@@ -61,5 +66,7 @@ discard block |
||
| 61 | 66 | * @static |
| 62 | 67 | * @return int Returns the current pool size |
| 63 | 68 | */ |
| 64 | - public static function getSize() {} |
|
| 69 | + public static function getSize() |
|
| 70 | + { |
|
| 71 | +} |
|
| 65 | 72 | } |
@@ -16,4 +16,6 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * <p>(PECL mongo >= 1.5.0)</p> |
| 18 | 18 | */ |
| 19 | -class MongoProtocolException extends MongoException {} |
|
| 19 | +class MongoProtocolException extends MongoException |
|
| 20 | +{ |
|
| 21 | +} |
|
@@ -18,13 +18,16 @@ |
||
| 18 | 18 | * @link http://php.net/manual/en/class.mongoresultexception.php#mongoresultexception.props.document |
| 19 | 19 | * |
| 20 | 20 | */ |
| 21 | -class MongoResultException extends MongoException { |
|
| 21 | +class MongoResultException extends MongoException |
|
| 22 | +{ |
|
| 22 | 23 | /** |
| 23 | 24 | * Retrieve the full result document |
| 24 | 25 | * http://php.net/manual/en/mongoresultexception.getdocument.php |
| 25 | 26 | * @return array <p>The full result document as an array, including partial data if available and additional keys.</p> |
| 26 | 27 | */ |
| 27 | - public function getDocument () {} |
|
| 28 | + public function getDocument () |
|
| 29 | + { |
|
| 30 | +} |
|
| 28 | 31 | |
| 29 | 32 | public $document; |
| 30 | 33 | |
@@ -17,11 +17,14 @@ |
||
| 17 | 17 | * <p>(PECL mongo >= 1.5.0)</p> |
| 18 | 18 | * @link http://php.net/manual/en/class.mongowriteconcernexception.php#class.mongowriteconcernexception |
| 19 | 19 | */ |
| 20 | -class MongoWriteConcernException extends MongoCursorException { |
|
| 20 | +class MongoWriteConcernException extends MongoCursorException |
|
| 21 | +{ |
|
| 21 | 22 | /** |
| 22 | 23 | * Get the error document |
| 23 | 24 | * @link http://php.net/manual/en/mongowriteconcernexception.getdocument.php |
| 24 | 25 | * @return array <p>A MongoDB document, if available, as an array.</p> |
| 25 | 26 | */ |
| 26 | - public function getDocument() {} |
|
| 27 | + public function getDocument() |
|
| 28 | + { |
|
| 29 | +} |
|
| 27 | 30 | } |