Completed
Push — master ( 3547be...e387d5 )
by Vitaly
04:28
created
src/Record.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,6 @@
 block discarded – undo
91 91
      * Если идентификатор = FALSE - выполняеся создание объекта без его привязки к БД
92 92
      * Если идентификатор > 0 - выполняется поиск записи в БД и привязка к ней в случае нахождения
93 93
      *
94
-     * @param mixed $id Идентификатор объекта в БД
95
-     * @param string $className Имя класса
96 94
      */
97 95
     public function __construct($database = null)
98 96
     {
Please login to merge, or discard this patch.
src/Database.php 1 patch
Doc Comments   +14 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param int $port Database port(3306 by default)
35 35
      * @param string $driver Database driver for interaction(MySQL by default)
36 36
      * @param string $charset Database character set
37
-     * @return bool True if connection to database was successful
37
+     * @return boolean|null True if connection to database was successful
38 38
      */
39 39
     public function connect(
40 40
         $database,
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      * Special accelerated function to retrieve db record fields instead of objects
167 167
      *
168 168
      * @param string $className
169
-     * @param mixed $query
169
+     * @param Query $query
170 170
      * @param string $field
171 171
      *
172 172
      * @return array
@@ -260,6 +260,10 @@  discard block
 block discarded – undo
260 260
         return $this->fetchOne($sql);
261 261
     }
262 262
 
263
+    /**
264
+     * @param string $className
265
+     * @param Record $object
266
+     */
263 267
     public function create($className, &$object = null)
264 268
     {
265 269
         // ??
@@ -276,6 +280,10 @@  discard block
 block discarded – undo
276 280
         return $this->driver->lastInsertId();
277 281
     }
278 282
 
283
+    /**
284
+     * @param string $className
285
+     * @param Record $object
286
+     */
279 287
     public function update($className, &$object)
280 288
     {
281 289
         // ??
@@ -288,6 +296,10 @@  discard block
 block discarded – undo
288 296
         $this->query($sql);
289 297
     }
290 298
 
299
+    /**
300
+     * @param string $className
301
+     * @param Record $object
302
+     */
291 303
     public function delete($className, &$object)
292 304
     {
293 305
         // Build SQL query
Please login to merge, or discard this patch.
src/Query.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -127,10 +127,8 @@  discard block
 block discarded – undo
127 127
      * Perform database request and return different results depending on function arguments.
128 128
      * @see \samson\activerecord\Record
129 129
      * @param array $result External variable to store dabatase request results collection
130
-     * @param integer|bool $rType Amount of arguments passed to parent function
130
+     * @param integer $rType Amount of arguments passed to parent function
131 131
      * @param integer $limit Quantity of records to return
132
-     * @param callable $handler External callable handler for results modification
133
-     * @param array $handlerArgs External callable handler arguments
134 132
      * @return boolean/array Boolean if $r_type > 0, otherwise array of request results
135 133
      */
136 134
     protected function &execute(
@@ -239,7 +237,7 @@  discard block
 block discarded – undo
239 237
     /**
240 238
      * Add condition to current query.
241 239
      *
242
-     * @param string|Condition|Argument $fieldName Entity field name
240
+     * @param null|string $fieldName Entity field name
243 241
      * @param string $fieldValue Value
244 242
      * @param string $relation Relation between field name and its value
245 243
      * @return self Chaining
Please login to merge, or discard this patch.