@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | * which might or might not be desired. Such a difference only arises in the trailing fractional zero digits, |
| 255 | 255 | * though. |
| 256 | 256 | * |
| 257 | - * @param string|int|float|Decimal|object $number number to compare this number with |
|
| 257 | + * @param Decimal $number number to compare this number with |
|
| 258 | 258 | * @return bool whether this number numerically equals to <tt>$number</tt> |
| 259 | 259 | */ |
| 260 | 260 | public function equals($number): bool |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | /** |
| 278 | - * @param string|int|float|Decimal|object $number |
|
| 278 | + * @param Decimal $number |
|
| 279 | 279 | * @return bool <tt>true</tt> iff this number is numerically greater than <tt>$number</tt> |
| 280 | 280 | */ |
| 281 | 281 | public function greaterThan($number): bool |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | /** |
| 363 | - * @param string|int|float|Decimal|object $augend |
|
| 363 | + * @param integer $augend |
|
| 364 | 364 | * @return Decimal a new decimal number, representing the result of sum of this and the given number |
| 365 | 365 | */ |
| 366 | 366 | public function add($augend): Decimal |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | } |
| 378 | 378 | |
| 379 | 379 | /** |
| 380 | - * @param string|int|float|Decimal|object $subtrahend |
|
| 380 | + * @param Decimal $subtrahend |
|
| 381 | 381 | * @return Decimal a new decimal number, representing the result of subtraction of this and the given number |
| 382 | 382 | */ |
| 383 | 383 | public function subtract($subtrahend): Decimal |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | /** |
| 397 | - * @param string|int|float|Decimal|object $multiplicand |
|
| 397 | + * @param Decimal $multiplicand |
|
| 398 | 398 | * @return Decimal a new decimal number, representing the result of multiplication of this and the given number |
| 399 | 399 | */ |
| 400 | 400 | public function multiply($multiplicand): Decimal |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | } |
| 412 | 412 | |
| 413 | 413 | /** |
| 414 | - * @param string|int|float|Decimal|object $divisor |
|
| 414 | + * @param Decimal $divisor |
|
| 415 | 415 | * @return Decimal a new decimal number, representing the result of division of this number with the given number |
| 416 | 416 | * @throws \RuntimeException if <tt>$divisor</tt> is zero |
| 417 | 417 | */ |
@@ -442,7 +442,7 @@ |
||
| 442 | 442 | /** |
| 443 | 443 | * Multiplies this time interval with a scalar and returns the result as a new time interval object. |
| 444 | 444 | * |
| 445 | - * @param number $multiplier |
|
| 445 | + * @param integer $multiplier |
|
| 446 | 446 | * @return TimeInterval |
| 447 | 447 | */ |
| 448 | 448 | public function multiply($multiplier): TimeInterval |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | trait RelationMacros |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @param string[] $columns |
|
| 23 | + */ |
|
| 21 | 24 | abstract public function project($columns): IRelation; |
| 22 | 25 | |
| 23 | 26 | abstract public function tuple(int $offset = 0): ITuple; |
@@ -301,6 +301,9 @@ |
||
| 301 | 301 | { |
| 302 | 302 | private $refresher; |
| 303 | 303 | |
| 304 | + /** |
|
| 305 | + * @param \Closure $refresher |
|
| 306 | + */ |
|
| 304 | 307 | public function __construct($refresher) |
| 305 | 308 | { |
| 306 | 309 | $this->refresher = $refresher; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * @param string $pattern |
| 12 | 12 | * @param callable $callback |
| 13 | - * @param string|string[] $subject |
|
| 13 | + * @param string $subject |
|
| 14 | 14 | * @param int $limit |
| 15 | 15 | * @param int|null $count |
| 16 | 16 | * @return string|string[] depending on whether <tt>$subject</tt> is <tt>string</tt> or <tt>array</tt>, |
@@ -35,6 +35,7 @@ discard block |
||
| 35 | 35 | * |
| 36 | 36 | * @param string|string[] one or more names of parameters the cached values of which to invalidate; |
| 37 | 37 | * <tt>null</tt> invalidates everything |
| 38 | + * @return void |
|
| 38 | 39 | */ |
| 39 | 40 | function invalidateCache($paramName = null): void; |
| 40 | 41 | |
@@ -47,6 +48,7 @@ discard block |
||
| 47 | 48 | * |
| 48 | 49 | * @param string|string[] $paramName one or more names of parameters to disabled caching values of; |
| 49 | 50 | * <tt>null</tt> disables the caching altogether |
| 51 | + * @return void |
|
| 50 | 52 | */ |
| 51 | 53 | function disableCaching($paramName = null): void; |
| 52 | 54 | |
@@ -58,6 +60,7 @@ discard block |
||
| 58 | 60 | * argument (which is the default). |
| 59 | 61 | * |
| 60 | 62 | * @param string|string[] $paramName |
| 63 | + * @return void |
|
| 61 | 64 | */ |
| 62 | 65 | function enableCaching($paramName = null): void; |
| 63 | 66 | } |
@@ -116,6 +116,10 @@ |
||
| 116 | 116 | return new $exClass($resultHandler, $query); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | + /** |
|
| 120 | + * @param resource $resultHandler |
|
| 121 | + * @param StatementExceptionFactory $fallbackFactory |
|
| 122 | + */ |
|
| 119 | 123 | private function inferExceptionClass($resultHandler, ?StatementExceptionFactory $fallbackFactory = null): string |
| 120 | 124 | { |
| 121 | 125 | if ($this->bySqlStateCodeAndMessage || $this->bySqlStateCode || $this->bySqlStateClass) { |
@@ -204,7 +204,7 @@ |
||
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
| 207 | - * @param IConnection|string $conn (name of) connection to use as the default connection |
|
| 207 | + * @param IConnection $conn (name of) connection to use as the default connection |
|
| 208 | 208 | * @throws \RuntimeException if the requested connection is not defined |
| 209 | 209 | */ |
| 210 | 210 | public static function useConnectionAsDefault($conn): void |
@@ -306,6 +306,9 @@ |
||
| 306 | 306 | } |
| 307 | 307 | } |
| 308 | 308 | |
| 309 | + /** |
|
| 310 | + * @param IType $item |
|
| 311 | + */ |
|
| 309 | 312 | private static function removeAll(array &$array, $item): void |
| 310 | 313 | { |
| 311 | 314 | while (($key = array_search($item, $array, true)) !== false) { |