@@ -87,6 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * {@inheritdoc} |
| 90 | + * @param \Symfony\Component\Form\Form $form |
|
| 90 | 91 | */ |
| 91 | 92 | public function enter($form) |
| 92 | 93 | { |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * Query the database to get the eager column values for the Model |
| 238 | 238 | * |
| 239 | 239 | * @param $id int The ID of the model to fetch |
| 240 | - * @return array|null The results or null if a model wasn't found |
|
| 240 | + * @return null|stdClass The results or null if a model wasn't found |
|
| 241 | 241 | */ |
| 242 | 242 | protected static function fetchColumnValues($id) |
| 243 | 243 | { |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | * Counts the elements of the database that match a specific query |
| 259 | 259 | * |
| 260 | 260 | * @param string $additional_query The MySQL query string (e.g. `WHERE id = ?`) |
| 261 | - * @param array $params The parameter values that will be passed to Database::query() |
|
| 261 | + * @param integer $params The parameter values that will be passed to Database::query() |
|
| 262 | 262 | * @param string $table The database table that will be searched, defaults to the model's table |
| 263 | 263 | * @param string $column Only count the entries where `$column` is not `NULL` (or all if `$column` is `*`) |
| 264 | 264 | * @return int |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | * @param string $column The name of the column that should be tested |
| 325 | 325 | * @param array|mixed $possible_values List of acceptable values |
| 326 | 326 | * @param bool $negate Whether to search if the value of $column does NOT belong to the $possible_values array |
| 327 | - * @param string|string[] $select The name of the column(s) that the returned array should contain |
|
| 327 | + * @param string $select The name of the column(s) that the returned array should contain |
|
| 328 | 328 | * @param string $additional_query Additional parameters to be passed to the MySQL query (e.g. `WHERE id = 5`) |
| 329 | 329 | * @param string $table The database table which will be used for queries |
| 330 | 330 | * |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | * @deprecated 0.10.2 This function has been removed and is no longer required with the new query builder |
| 396 | 396 | * |
| 397 | 397 | * @param string|null $prefix The table name or SQL alias to be prepend to these columns |
| 398 | - * @param array $columns The columns to format |
|
| 398 | + * @param string[] $columns The columns to format |
|
| 399 | 399 | * |
| 400 | 400 | * @return string |
| 401 | 401 | */ |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | * |
| 456 | 456 | * @since 0.11.0 |
| 457 | 457 | * |
| 458 | - * @return array |
|
| 458 | + * @return string[] |
|
| 459 | 459 | */ |
| 460 | 460 | public static function getEagerColumnsList() |
| 461 | 461 | { |
@@ -82,6 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | 84 | * {@inheritdoc} |
| 85 | + * @param integer $limit |
|
| 85 | 86 | */ |
| 86 | 87 | public function limit($limit) |
| 87 | 88 | { |
@@ -187,7 +188,7 @@ discard block |
||
| 187 | 188 | /** |
| 188 | 189 | * Find the first matching model in the database or return an invalid model. |
| 189 | 190 | * |
| 190 | - * @param mixed $value The value to search for |
|
| 191 | + * @param string $value The value to search for |
|
| 191 | 192 | * @param string $columnName The column name we'll be checking |
| 192 | 193 | * |
| 193 | 194 | * @return Model |
@@ -239,7 +240,7 @@ discard block |
||
| 239 | 240 | * |
| 240 | 241 | * @throws \Pixie\Exception |
| 241 | 242 | * |
| 242 | - * @return array |
|
| 243 | + * @return Model[] |
|
| 243 | 244 | */ |
| 244 | 245 | public function getModels($fastFetch = false) |
| 245 | 246 | { |