@@ -10,6 +10,9 @@ |
||
10 | 10 | class ImmutableNumber extends Number implements NumberInterface, DecimalInterface |
11 | 11 | { |
12 | 12 | |
13 | + /** |
|
14 | + * @param ImmutableNumber $mod |
|
15 | + */ |
|
13 | 16 | public function modulo($mod) |
14 | 17 | { |
15 | 18 | $oldBase = $this->convertForModification(); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * Note about precision: it uses the smaller of the two precisions (significant figures). |
132 | 132 | * |
133 | 133 | * @param $num |
134 | - * @param $precision |
|
134 | + * @param integer $precision |
|
135 | 135 | * @return DecimalInterface|NumberInterface |
136 | 136 | */ |
137 | 137 | public function divide($num, $precision = null) |
@@ -544,6 +544,9 @@ discard block |
||
544 | 544 | |
545 | 545 | } |
546 | 546 | |
547 | + /** |
|
548 | + * @param ImmutableNumber $num |
|
549 | + */ |
|
547 | 550 | public function getGreatestCommonDivisor($num) |
548 | 551 | { |
549 | 552 | /** @var ImmutableNumber $num */ |
@@ -938,6 +941,10 @@ discard block |
||
938 | 941 | return strpos($this->value, '.'); |
939 | 942 | } |
940 | 943 | |
944 | + /** |
|
945 | + * @param integer $pos |
|
946 | + * @param integer $add |
|
947 | + */ |
|
941 | 948 | protected function reduceDecimals(array $decimalArray, $pos, $add) |
942 | 949 | { |
943 | 950 | |
@@ -987,9 +994,9 @@ discard block |
||
987 | 994 | abstract public function modulo($mod); |
988 | 995 | |
989 | 996 | /** |
990 | - * @param $mod |
|
997 | + * @param NumberInterface $mod |
|
991 | 998 | * |
992 | - * @return NumberInterface|DecimalInterface |
|
999 | + * @return NumberInterface |
|
993 | 1000 | */ |
994 | 1001 | abstract public function continuousModulo($mod); |
995 | 1002 |
@@ -178,7 +178,7 @@ |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
181 | - * @param int|float|DecimalInterface $min |
|
181 | + * @param integer $min |
|
182 | 182 | * @param int|float|DecimalInterface $max |
183 | 183 | * @param int $maxIterations |
184 | 184 | * |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * WARNING: This function is of very limited use with Poisson distributions, and may represent a SIGNIFICANT |
164 | 164 | * performance hit for certain values of $min, $max, $lambda, and $maxIterations |
165 | 165 | * |
166 | - * @param int|float|NumberInterface $min |
|
166 | + * @param integer $min |
|
167 | 167 | * @param int|float|NumberInterface $max |
168 | 168 | * @param int $maxIterations |
169 | 169 | * |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * WARNING: This function is of very limited use with Poisson distributions, and may represent a SIGNIFICANT |
164 | 164 | * performance hit for certain values of $min, $max, $lambda, and $maxIterations |
165 | 165 | * |
166 | - * @param int|float|NumberInterface $min |
|
166 | + * @param integer $min |
|
167 | 167 | * @param int|float|NumberInterface $max |
168 | 168 | * @param int $maxIterations |
169 | 169 | * |
@@ -24,6 +24,10 @@ |
||
24 | 24 | */ |
25 | 25 | protected $denominator; |
26 | 26 | |
27 | + /** |
|
28 | + * @param ImmutableNumber $numerator |
|
29 | + * @param ImmutableNumber $denominator |
|
30 | + */ |
|
27 | 31 | public function __construct($numerator, $denominator, $base = 10) |
28 | 32 | { |
29 | 33 |