@@ -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) |
@@ -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'); |
@@ -276,6 +276,9 @@ |
||
276 | 276 | |
277 | 277 | private static $method_from_cache = array(); |
278 | 278 | |
279 | + /** |
|
280 | + * @param string $method |
|
281 | + */ |
|
279 | 282 | public static function has_method_from($class, $method, $compclass) { |
280 | 283 | $lClass = strtolower($class); |
281 | 284 | $lMethod = strtolower($method); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * |
182 | 182 | * @param string|DataObject $classOrInstance Name or instance of class |
183 | 183 | * @param string $fieldName |
184 | - * @param array $options Array of options. Specify any number of the below: |
|
184 | + * @param string[] $options Array of options. Specify any number of the below: |
|
185 | 185 | * - `uninherited`: Set to true to limit to only this table |
186 | 186 | * - `dbOnly`: Exclude virtual fields (such as composite fields), and only include fields with a db column. |
187 | 187 | * - `includeClass`: If true prefix the field specification with the class name in RecordClass.Column(spec) format. |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | * @param string $parentClass Parent class name |
648 | 648 | * @param string $component ManyMany name |
649 | 649 | * @param string|array $specification Declaration of many_many relation type |
650 | - * @return array |
|
650 | + * @return string[] |
|
651 | 651 | */ |
652 | 652 | protected function parseManyManyComponent($parentClass, $component, $specification) |
653 | 653 | { |