@@ -62,7 +62,7 @@ |
||
62 | 62 | * |
63 | 63 | * It does so by setting the relationFilters. |
64 | 64 | * |
65 | - * @param DataObject|int $item The DataObject to be added, or its ID |
|
65 | + * @param DataObject $item The DataObject to be added, or its ID |
|
66 | 66 | */ |
67 | 67 | public function add($item) { |
68 | 68 | if(is_numeric($item)) { |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | /** |
380 | 380 | * Return the IDs of all the marked nodes. |
381 | 381 | * |
382 | - * @return array |
|
382 | + * @return integer[] |
|
383 | 383 | */ |
384 | 384 | public function markedNodeIDs() { |
385 | 385 | return array_keys($this->markedNodes); |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | * Get the next node in the tree of the type. If there is no instance of the className descended from this node, |
757 | 757 | * then search the parents. |
758 | 758 | * @param string $className Class name of the node to find. |
759 | - * @param string|int $root ID/ClassName of the node to limit the search to |
|
759 | + * @param integer $root ID/ClassName of the node to limit the search to |
|
760 | 760 | * @param DataObject $afterNode Used for recursive calls to this function |
761 | 761 | * @return DataObject |
762 | 762 | */ |
@@ -124,7 +124,7 @@ |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
127 | - * @param mixed $item |
|
127 | + * @param \ManyManyThroughListTest_Item $item |
|
128 | 128 | * @param array $extraFields |
129 | 129 | */ |
130 | 130 | public function add($item, $extraFields = []) { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | - * @param mixed $joinClass |
|
68 | + * @param string $joinClass |
|
69 | 69 | * @return $this |
70 | 70 | */ |
71 | 71 | public function setJoinClass($joinClass) |
@@ -41,6 +41,7 @@ discard block |
||
41 | 41 | * Set the key field for this map. |
42 | 42 | * |
43 | 43 | * @var string $keyField |
44 | + * @param string $keyField |
|
44 | 45 | */ |
45 | 46 | public function setKeyField($keyField) { |
46 | 47 | $this->keyField = $keyField; |
@@ -50,6 +51,7 @@ discard block |
||
50 | 51 | * Set the value field for this map. |
51 | 52 | * |
52 | 53 | * @var string $valueField |
54 | + * @param string $valueField |
|
53 | 55 | */ |
54 | 56 | public function setValueField($valueField) { |
55 | 57 | $this->valueField = $valueField; |
@@ -95,6 +97,7 @@ discard block |
||
95 | 97 | * |
96 | 98 | * @var string $key |
97 | 99 | * @var mixed $value |
100 | + * @param string $value |
|
98 | 101 | */ |
99 | 102 | public function unshift($key, $value) { |
100 | 103 | $oldItems = $this->firstItems; |
@@ -114,6 +117,7 @@ discard block |
||
114 | 117 | * |
115 | 118 | * @var string $key |
116 | 119 | * @var mixed $value |
120 | + * @param string $value |
|
117 | 121 | */ |
118 | 122 | public function push($key, $value) { |
119 | 123 | $oldItems = $this->lastItems; |
@@ -374,7 +374,6 @@ discard block |
||
374 | 374 | * @see SQLConditionalExpression::addWhere() for syntax examples |
375 | 375 | * |
376 | 376 | * @param mixed $where Predicate(s) to set, as escaped SQL statements or paramaterised queries |
377 | - * @param mixed $where,... Unlimited additional predicates |
|
378 | 377 | * @return self Self reference |
379 | 378 | */ |
380 | 379 | public function setWhere($where) { |
@@ -460,7 +459,6 @@ discard block |
||
460 | 459 | * </code> |
461 | 460 | * |
462 | 461 | * @param mixed $where Predicate(s) to set, as escaped SQL statements or paramaterised queries |
463 | - * @param mixed $where,... Unlimited additional predicates |
|
464 | 462 | * @return self Self reference |
465 | 463 | */ |
466 | 464 | public function addWhere($where) { |
@@ -476,7 +474,6 @@ discard block |
||
476 | 474 | * @see SQLConditionalExpression::addWhere() |
477 | 475 | * |
478 | 476 | * @param mixed $filters Predicate(s) to set, as escaped SQL statements or paramaterised queries |
479 | - * @param mixed $filters,... Unlimited additional predicates |
|
480 | 477 | * @return self Self reference |
481 | 478 | */ |
482 | 479 | public function setWhereAny($filters) { |
@@ -490,7 +487,6 @@ discard block |
||
490 | 487 | * @see SQLConditionalExpression::addWhere() |
491 | 488 | * |
492 | 489 | * @param mixed $filters Predicate(s) to set, as escaped SQL statements or paramaterised queries |
493 | - * @param mixed $filters,... Unlimited additional predicates |
|
494 | 490 | * @return self Self reference |
495 | 491 | */ |
496 | 492 | public function addWhereAny($filters) { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Construct a new SQLSelect. |
67 | 67 | * |
68 | - * @param array|string $select An array of SELECT fields. |
|
68 | + * @param string $select An array of SELECT fields. |
|
69 | 69 | * @param array|string $from An array of FROM clauses. The first one should be just the table name. |
70 | 70 | * Each should be ANSI quoted. |
71 | 71 | * @param array $where An array of WHERE clauses. |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * |
356 | 356 | * @param string $value |
357 | 357 | * @param string $defaultDirection |
358 | - * @return array A two element array: array($column, $direction) |
|
358 | + * @return string[] A two element array: array($column, $direction) |
|
359 | 359 | */ |
360 | 360 | private function getDirectionFromString($value, $defaultDirection = null) { |
361 | 361 | if(preg_match('/^(.*)(asc|desc)$/i', $value, $matches)) { |
@@ -450,7 +450,6 @@ discard block |
||
450 | 450 | * @see SQLSelect::addWhere() for syntax examples |
451 | 451 | * |
452 | 452 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
453 | - * @param mixed $having,... Unlimited additional predicates |
|
454 | 453 | * @return $this Self reference |
455 | 454 | */ |
456 | 455 | public function setHaving($having) { |
@@ -465,7 +464,6 @@ discard block |
||
465 | 464 | * @see SQLSelect::addWhere() for syntax examples |
466 | 465 | * |
467 | 466 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
468 | - * @param mixed $having,... Unlimited additional predicates |
|
469 | 467 | * @return $this Self reference |
470 | 468 | */ |
471 | 469 | public function addHaving($having) { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * Any number of foreign keys to apply to this list |
16 | 16 | * |
17 | - * @return string|array|null |
|
17 | + * @return string|null |
|
18 | 18 | */ |
19 | 19 | public function getForeignID() { |
20 | 20 | return $this->dataQuery->getQueryParam('Foreign.ID'); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * Create a new UnsavedRelationList |
52 | 52 | * |
53 | - * @param array $baseClass |
|
53 | + * @param string $baseClass |
|
54 | 54 | * @param string $relationName |
55 | 55 | * @param string $dataClass The DataObject class used in the relation |
56 | 56 | */ |