@@ -133,7 +133,7 @@ public function getPrimary($need = TRUE)
133133
134134
135135 /**
136- * @return string
136+ * @return string|NULL
137137 */
138138 public function getPrimarySequence ()
139139 {
@@ -273,7 +273,7 @@ public function fetchAssoc($path)
273273
274274 /**
275275 * Adds select clause, more calls appends to the end.
276- * @param string for example "column, MD5(column) AS column_md5"
276+ * @param string|string[] for example "column, MD5(column) AS column_md5"
277277 * @return static
278278 */
279279 public function select ($ columns , ...$ params )
@@ -311,7 +311,7 @@ public function wherePrimary($key)
311311
312312 /**
313313 * Adds where condition, more calls appends with AND.
314- * @param string condition possibly containing ?
314+ * @param string|string[] condition possibly containing ?
315315 * @param mixed
316316 * @return static
317317 */
@@ -338,7 +338,7 @@ public function joinWhere($tableChain, $condition, ...$params)
338338
339339 /**
340340 * Adds condition, more calls appends with AND.
341- * @param string condition possibly containing ?
341+ * @param string|string[] condition possibly containing ?
342342 * @return void
343343 */
344344 protected function condition ($ condition , array $ params , $ tableChain = NULL )
@@ -484,7 +484,7 @@ public function alias($tableChain, $alias)
484484 /**
485485 * Executes aggregation function.
486486 * @param string select call in "FUNCTION(column)" format
487- * @return string
487+ * @return int
488488 */
489489 public function aggregation ($ function )
490490 {
@@ -591,24 +591,36 @@ protected function execute()
591591 }
592592
593593
594+ /**
595+ * @return ActiveRow
596+ */
594597 protected function createRow (array $ row )
595598 {
596599 return new ActiveRow ($ row , $ this );
597600 }
598601
599602
603+ /**
604+ * @return self
605+ */
600606 public function createSelectionInstance ($ table = NULL )
601607 {
602608 return new self ($ this ->context , $ this ->conventions , $ table ?: $ this ->name , $ this ->cache ? $ this ->cache ->getStorage () : NULL );
603609 }
604610
605611
612+ /**
613+ * @return GroupedSelection
614+ */
606615 protected function createGroupedSelectionInstance ($ table , $ column )
607616 {
608617 return new GroupedSelection ($ this ->context , $ this ->conventions , $ table , $ column , $ this , $ this ->cache ? $ this ->cache ->getStorage () : NULL );
609618 }
610619
611620
621+ /**
622+ * @return Nette\Database\ResultSet
623+ */
612624 protected function query ($ query )
613625 {
614626 return $ this ->context ->queryArgs ($ query , $ this ->sqlBuilder ->getParameters ());
@@ -902,7 +914,7 @@ public function delete()
902914 /**
903915 * Returns referenced row.
904916 * @param ActiveRow
905- * @param string
917+ * @param string|NULL
906918 * @param string|NULL
907919 * @return ActiveRow|NULL|FALSE NULL if the row does not exist, FALSE if the relationship does not exist
908920 */
@@ -953,7 +965,7 @@ public function getReferencedTable(ActiveRow $row, $table, $column = NULL)
953965 * @param string
954966 * @param string
955967 * @param int primary key
956- * @return GroupedSelection
968+ * @return GroupedSelection|NULL
957969 */
958970 public function getReferencingTable ($ table , $ column , $ active = NULL )
959971 {
@@ -962,7 +974,7 @@ public function getReferencingTable($table, $column, $active = NULL)
962974 } elseif (!$ column ) {
963975 $ hasMany = $ this ->conventions ->getHasManyReference ($ this ->name , $ table );
964976 if (!$ hasMany ) {
965- return FALSE ;
977+ return NULL ;
966978 }
967979 list ($ table , $ column ) = $ hasMany ;
968980 }
@@ -1002,7 +1014,7 @@ public function current()
10021014
10031015
10041016 /**
1005- * @return string row ID
1017+ * @return string|int row ID
10061018 */
10071019 public function key ()
10081020 {
@@ -1031,7 +1043,7 @@ public function valid()
10311043 * Mimic row.
10321044 * @param string row ID
10331045 * @param IRow
1034- * @return NULL
1046+ * @return void
10351047 */
10361048 public function offsetSet ($ key , $ value )
10371049 {
@@ -1043,7 +1055,7 @@ public function offsetSet($key, $value)
10431055 /**
10441056 * Returns specified row.
10451057 * @param string row ID
1046- * @return IRow or NULL if there is no such row
1058+ * @return IRow| NULL if there is no such row
10471059 */
10481060 public function offsetGet ($ key )
10491061 {
@@ -1067,7 +1079,7 @@ public function offsetExists($key)
10671079 /**
10681080 * Removes row from result set.
10691081 * @param string row ID
1070- * @return NULL
1082+ * @return void
10711083 */
10721084 public function offsetUnset ($ key )
10731085 {
0 commit comments