@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * Select the first non-empty value from an array. |
69 | 69 | * |
70 | - * @param array $keys An array of keys to try. |
|
70 | + * @param string[] $keys An array of keys to try. |
|
71 | 71 | * @param array $array The array to select from. |
72 | 72 | * @param mixed $default The default value if non of the keys exist. |
73 | 73 | * @return mixed Returns the first non-empty value of {@link $default} if none are found. |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | * |
412 | 412 | * @param array &$data The data to validate. |
413 | 413 | * @param Validation &$validation This argument will be filled with the validation result. |
414 | - * @return bool Returns true if the data is valid, false otherwise. |
|
414 | + * @return Schema Returns true if the data is valid, false otherwise. |
|
415 | 415 | * @throws ValidationException Throws an exception when the data does not validate against the schema. |
416 | 416 | */ |
417 | 417 | public function validate(array &$data, Validation &$validation = null) { |
@@ -177,7 +177,7 @@ |
||
177 | 177 | /** |
178 | 178 | * Get the defaultOrder. |
179 | 179 | * |
180 | - * @return array Returns the defaultOrder. |
|
180 | + * @return string[] Returns the defaultOrder. |
|
181 | 181 | */ |
182 | 182 | public function getDefaultOrder() { |
183 | 183 | return $this->defaultOrder; |
@@ -594,7 +594,7 @@ |
||
594 | 594 | /** |
595 | 595 | * Build a sql update statement. |
596 | 596 | * |
597 | - * @param string|Literal $tableName The name of the table to update. |
|
597 | + * @param string $tableName The name of the table to update. |
|
598 | 598 | * @param array $set An array of columns to set. |
599 | 599 | * @param array $where The where filter. |
600 | 600 | * @param array $options Additional options for the query. |
@@ -41,6 +41,9 @@ discard block |
||
41 | 41 | */ |
42 | 42 | private $calculator; |
43 | 43 | |
44 | + /** |
|
45 | + * @param string $table |
|
46 | + */ |
|
44 | 47 | public function __construct($table, $where, Db $db) { |
45 | 48 | $this->table = $table; |
46 | 49 | $this->where = $where; |
@@ -141,6 +144,9 @@ discard block |
||
141 | 144 | return $this; |
142 | 145 | } |
143 | 146 | |
147 | + /** |
|
148 | + * @param string $name |
|
149 | + */ |
|
144 | 150 | protected function getOption($name, $default = null) { |
145 | 151 | return isset($this->options[$name]) ? $this->options[$name] : $default; |
146 | 152 | } |
@@ -181,7 +187,7 @@ discard block |
||
181 | 187 | /** |
182 | 188 | * Set the calculator. |
183 | 189 | * |
184 | - * @param callable|null $calculator |
|
190 | + * @param callable $calculator |
|
185 | 191 | * @return $this |
186 | 192 | */ |
187 | 193 | public function setCalculator(callable $calculator) { |