@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | * which might or might not be desired. Such a difference only arises in the trailing fractional zero digits, |
257 | 257 | * though. |
258 | 258 | * |
259 | - * @param string|int|float|Decimal|object $number number to compare this number with |
|
259 | + * @param Decimal $number number to compare this number with |
|
260 | 260 | * @return bool|null whether this number numerically equals to <tt>$number</tt>; |
261 | 261 | * <tt>null</tt> for <tt>null</tt> input |
262 | 262 | */ |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | } |
279 | 279 | |
280 | 280 | /** |
281 | - * @param string|int|float|Decimal|object $number |
|
281 | + * @param Decimal $number |
|
282 | 282 | * @return bool <tt>true</tt> iff this number is numerically greater than <tt>$number</tt> |
283 | 283 | */ |
284 | 284 | public function greaterThan($number): bool |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | } |
364 | 364 | |
365 | 365 | /** |
366 | - * @param string|int|float|Decimal|object $augend |
|
366 | + * @param integer $augend |
|
367 | 367 | * @return Decimal a new decimal number, representing the result of sum of this and the given number |
368 | 368 | */ |
369 | 369 | public function add($augend): Decimal |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | } |
381 | 381 | |
382 | 382 | /** |
383 | - * @param string|int|float|Decimal|object $subtrahend |
|
383 | + * @param Decimal $subtrahend |
|
384 | 384 | * @return Decimal a new decimal number, representing the result of subtraction of this and the given number |
385 | 385 | */ |
386 | 386 | public function subtract($subtrahend): Decimal |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | } |
398 | 398 | |
399 | 399 | /** |
400 | - * @param string|int|float|Decimal|object $multiplicand |
|
400 | + * @param Decimal $multiplicand |
|
401 | 401 | * @return Decimal a new decimal number, representing the result of multiplication of this and the given number |
402 | 402 | */ |
403 | 403 | public function multiply($multiplicand): Decimal |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | } |
415 | 415 | |
416 | 416 | /** |
417 | - * @param string|int|float|Decimal|object $divisor |
|
417 | + * @param Decimal $divisor |
|
418 | 418 | * @return Decimal a new decimal number, representing the result of division of this number with the given number |
419 | 419 | * @throws \RuntimeException if <tt>$divisor</tt> is zero |
420 | 420 | */ |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Ivory\Value; |
4 | 4 | |
5 | 5 | use Ivory\Exception\UndefinedOperationException; |
@@ -168,6 +168,9 @@ discard block |
||
168 | 168 | return new Range($subtype, null, true, null, null, null, null); |
169 | 169 | } |
170 | 170 | |
171 | + /** |
|
172 | + * @param boolean $upperInc |
|
173 | + */ |
|
171 | 174 | private static function processBoundSpec($boundsOrLowerInc = '[)', ?bool $upperInc = null) |
172 | 175 | { |
173 | 176 | if (is_string($boundsOrLowerInc)) { |
@@ -194,6 +197,9 @@ discard block |
||
194 | 197 | } |
195 | 198 | |
196 | 199 | |
200 | + /** |
|
201 | + * @param IRangeCanonicalFunc|null $canonicalFunc |
|
202 | + */ |
|
197 | 203 | private function __construct( |
198 | 204 | ITotallyOrderedType $subtype, |
199 | 205 | ?IRangeCanonicalFunc $canonicalFunc, |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Ivory\Value; |
4 | 4 | |
5 | 5 | use Ivory\Exception\ImmutableException; |
@@ -206,7 +206,7 @@ |
||
206 | 206 | * Adds a given number of seconds (1 by default) to this date/time and returns the result. Only affects finite |
207 | 207 | * dates. |
208 | 208 | * |
209 | - * @param int|float $seconds |
|
209 | + * @param integer $seconds |
|
210 | 210 | * @return static the date <tt>$seconds</tt> seconds after (or before, if negative) this date/time |
211 | 211 | */ |
212 | 212 | public function addSecond($seconds = 1) |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Ivory\Value; |
4 | 4 | |
5 | 5 | /** |
@@ -22,6 +22,7 @@ discard block |
||
22 | 22 | * Flushes the type dictionary currently in use, leading to loading a fresh new type dictionary. |
23 | 23 | * |
24 | 24 | * Useful when the data types change during the script execution in such a way Ivory is unable to detect it. |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | function flushTypeDictionary(): void; |
27 | 28 | |
@@ -29,6 +30,7 @@ discard block |
||
29 | 30 | * Sets an implementation-specific option, driving behaviour of the type control. |
30 | 31 | * |
31 | 32 | * @param int $option |
33 | + * @return void |
|
32 | 34 | */ |
33 | 35 | function setTypeControlOption(int $option): void; |
34 | 36 | |
@@ -36,6 +38,7 @@ discard block |
||
36 | 38 | * Unsets an implementation-specific option, driving behaviour of the type control. |
37 | 39 | * |
38 | 40 | * @param int $option |
41 | + * @return void |
|
39 | 42 | */ |
40 | 43 | function unsetTypeControlOption(int $option): void; |
41 | 44 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Ivory\Connection; |
4 | 4 | |
5 | 5 | use Ivory\Type\ITypeDictionary; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * Projects a single column from this relation. |
164 | 164 | * |
165 | - * @param int|string|ITupleEvaluator|\Closure $offsetOrNameOrEvaluator |
|
165 | + * @param integer $offsetOrNameOrEvaluator |
|
166 | 166 | * Zero-based offset or (non-numeric) name of column to project from this relation, |
167 | 167 | * or an evaluator which computes each value from the tuple. |
168 | 168 | * As an evaluator, either {@link ITupleEvaluator} (the |
@@ -318,12 +318,12 @@ discard block |
||
318 | 318 | function tuple(int $offset = 0): ITuple; |
319 | 319 | |
320 | 320 | /** |
321 | - * @param int|string|ITupleEvaluator|\Closure $colOffsetOrNameOrEvaluator |
|
321 | + * @param integer $colOffsetOrNameOrEvaluator |
|
322 | 322 | * Specification of column from which to get the value. See {@link col()} for more |
323 | 323 | * details on the column specification. |
324 | 324 | * @param int $tupleOffset zero-based offset of the tuple to get; |
325 | 325 | * if negative, the <tt>-$tupleOffset</tt>'th tuple from the end is returned |
326 | - * @return mixed |
|
326 | + * @return string |
|
327 | 327 | * @throws \OutOfBoundsException when this relation has fewer than <tt>$tupleOffset+1</tt> tuples, or fewer than |
328 | 328 | * <tt>-$tupleOffset</tt> tuples if <tt>$tupleOffset</tt> is negative |
329 | 329 | * @throws UndefinedColumnException if no column matches the specification |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Ivory\Relation; |
4 | 4 | |
5 | 5 | use Ivory\Data\Set\ISet; |
@@ -18,8 +18,8 @@ |
||
18 | 18 | /** |
19 | 19 | * Creates a new box from a corner and its opposite corner, each as either a {@link Point} or a pair of coordinates. |
20 | 20 | * |
21 | - * @param Point|float[] $corner |
|
22 | - * @param Point|float[] $oppositeCorner |
|
21 | + * @param Point $corner |
|
22 | + * @param Point $oppositeCorner |
|
23 | 23 | * @return Box |
24 | 24 | */ |
25 | 25 | public static function fromOppositeCorners($corner, $oppositeCorner): Box |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Ivory\Value; |
4 | 4 | |
5 | 5 | /** |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * Creates a new circle by its center point and radius. |
18 | 18 | * |
19 | - * @param Point|float[] $center the center point |
|
19 | + * @param Point $center the center point |
|
20 | 20 | * @param float $radius radius of the circle |
21 | 21 | * @return Circle |
22 | 22 | */ |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Ivory\Value; |
4 | 4 | |
5 | 5 | /** |
@@ -18,8 +18,8 @@ |
||
18 | 18 | /** |
19 | 19 | * Creates a new line segment from its start and end point, each as either a {@link Point} or a pair of coordinates. |
20 | 20 | * |
21 | - * @param Point|float[] $start |
|
22 | - * @param Point|float[] $end |
|
21 | + * @param Point $start |
|
22 | + * @param Point $end |
|
23 | 23 | * @return LineSegment |
24 | 24 | */ |
25 | 25 | public static function fromEndpoints($start, $end): LineSegment |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Ivory\Value; |
4 | 4 | |
5 | 5 | /** |
@@ -76,7 +76,7 @@ |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
79 | - * @param object $object |
|
79 | + * @param Point $object |
|
80 | 80 | * @return bool|null <tt>true</tt> if <tt>$this</tt> and the other <tt>$object</tt> are equal to each other, |
81 | 81 | * <tt>false</tt> if they are not equal, |
82 | 82 | * <tt>null</tt> iff <tt>$object</tt> is <tt>null</tt> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Ivory\Value; |
4 | 4 | |
5 | 5 | use Ivory\Utils\IEqualable; |