@@ -56,6 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | /** |
58 | 58 | * @internal Only for the purpose of Ivory itself. |
59 | + * @param integer $inf |
|
59 | 60 | */ |
60 | 61 | final protected function __construct($inf, \DateTimeImmutable $dt = null) |
61 | 62 | { |
@@ -178,7 +179,7 @@ discard block |
||
178 | 179 | |
179 | 180 | /** |
180 | 181 | * @param \DateTimeZone $timezone timezone to create the {@link \DateTime} object with |
181 | - * @return \DateTime|null the date/time represented as a {@link \DateTimeImmutable} object; |
|
182 | + * @return null|\DateTimeImmutable the date/time represented as a {@link \DateTimeImmutable} object; |
|
182 | 183 | * <tt>null</tt> iff the date/time is not finite |
183 | 184 | */ |
184 | 185 | public function toDateTimeImmutable(\DateTimeZone $timezone = null) |
@@ -233,6 +234,13 @@ discard block |
||
233 | 234 | } |
234 | 235 | |
235 | 236 | |
237 | + /** |
|
238 | + * @param integer $years |
|
239 | + * @param integer $months |
|
240 | + * @param integer $days |
|
241 | + * @param integer $hours |
|
242 | + * @param integer $minutes |
|
243 | + */ |
|
236 | 244 | final protected function addPartsImpl($years, $months, $days, $hours, $minutes, $seconds) |
237 | 245 | { |
238 | 246 | if ($this->inf) { |
@@ -164,7 +164,7 @@ |
||
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
167 | - * @param IConnection|string $conn (name of) connection to use as the default connection |
|
167 | + * @param IConnection $conn (name of) connection to use as the default connection |
|
168 | 168 | * @throws \RuntimeException if the requested connection is not defined |
169 | 169 | */ |
170 | 170 | public static function useConnectionAsDefault($conn) |
@@ -13,7 +13,7 @@ |
||
13 | 13 | class ConnectionException extends \RuntimeException |
14 | 14 | { |
15 | 15 | /** |
16 | - * @param string|resource $message alternatively to the message, a connection handler may be given - the last error |
|
16 | + * @param string $message alternatively to the message, a connection handler may be given - the last error |
|
17 | 17 | * message on this connection is considered then |
18 | 18 | * @param int $code |
19 | 19 | * @param Exception $previous |
@@ -75,6 +75,12 @@ discard block |
||
75 | 75 | } |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param integer $month |
|
80 | + * @param integer $day |
|
81 | + * @param integer $hour |
|
82 | + * @param integer $minute |
|
83 | + */ |
|
78 | 84 | protected static function inRanges($month, $day, $hour, $minute, $second) |
79 | 85 | { |
80 | 86 | return ( |
@@ -88,6 +94,13 @@ discard block |
||
88 | 94 | ); |
89 | 95 | } |
90 | 96 | |
97 | + /** |
|
98 | + * @param integer $year |
|
99 | + * @param integer $month |
|
100 | + * @param integer $day |
|
101 | + * @param integer $hour |
|
102 | + * @param integer $minute |
|
103 | + */ |
|
91 | 104 | protected static function assertRanges($year, $month, $day, $hour, $minute, $second) |
92 | 105 | { |
93 | 106 | if ($year == 0) { |
@@ -202,7 +215,7 @@ discard block |
||
202 | 215 | * Adds a given number of seconds (1 by default) to this date/time and returns the result. Only affects finite |
203 | 216 | * dates. |
204 | 217 | * |
205 | - * @param int|float $seconds |
|
218 | + * @param integer $seconds |
|
206 | 219 | * @return static the date <tt>$seconds</tt> seconds after (or before, if negative) this date/time |
207 | 220 | */ |
208 | 221 | public function addSecond($seconds = 1) |
@@ -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 | */ |
@@ -89,6 +89,9 @@ |
||
89 | 89 | return $value; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @return string|null |
|
94 | + */ |
|
92 | 95 | private static function getJsonErrorMsg() |
93 | 96 | { |
94 | 97 | if (PHP_VERSION_ID >= 50500) { |
@@ -55,6 +55,9 @@ |
||
55 | 55 | return new Line($a, $b, $c, [$p1, $p2]); |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param Point[] $points |
|
60 | + */ |
|
58 | 61 | private function __construct(float $a, float $b, float $c, $points) |
59 | 62 | { |
60 | 63 | $this->a = $a; |
@@ -68,6 +68,9 @@ |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | |
71 | + /** |
|
72 | + * @param string|null $unit |
|
73 | + */ |
|
71 | 74 | private function __construct(Decimal $amount, $unit) |
72 | 75 | { |
73 | 76 | $this->amount = $amount; |
@@ -97,6 +97,9 @@ discard block |
||
97 | 97 | return new Quantity($val, $unit); |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param string $value |
|
102 | + */ |
|
100 | 103 | public static function fromValue($value, string $unit = null): Quantity |
101 | 104 | { |
102 | 105 | if (!is_numeric($value)) { |
@@ -110,6 +113,9 @@ discard block |
||
110 | 113 | return new Quantity($value, $unit); |
111 | 114 | } |
112 | 115 | |
116 | + /** |
|
117 | + * @param string|null $unit |
|
118 | + */ |
|
113 | 119 | private function __construct($value, $unit) |
114 | 120 | { |
115 | 121 | $this->value = $value; |