@@ -85,6 +85,9 @@ |
||
85 | 85 | return $this->PDFByValue($value); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param NumberInterface $value |
|
90 | + */ |
|
88 | 91 | public function PDFByValue($value) |
89 | 92 | { |
90 | 93 | $value = Numbers::makeOrDont($this->numberType, $value); |
@@ -88,6 +88,9 @@ |
||
88 | 88 | |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param NumberInterface $p |
|
93 | + */ |
|
91 | 94 | public static function inverseNormalCDF($p, $precision = 10) |
92 | 95 | { |
93 | 96 | $pi = Numbers::makePi(); |
@@ -221,8 +221,8 @@ |
||
221 | 221 | } |
222 | 222 | |
223 | 223 | /** |
224 | - * @param $a |
|
225 | - * @param $b |
|
224 | + * @param ImmutableNumber $a |
|
225 | + * @param NumberInterface $b |
|
226 | 226 | * |
227 | 227 | * @return NumberInterface |
228 | 228 | */ |
@@ -21,6 +21,10 @@ discard block |
||
21 | 21 | |
22 | 22 | protected $symbol; |
23 | 23 | |
24 | + /** |
|
25 | + * @param integer $symbol |
|
26 | + * @param integer $precision |
|
27 | + */ |
|
24 | 28 | public function __construct($value, $symbol = Currency::DOLLAR, $precision = null, $base = 10) |
25 | 29 | { |
26 | 30 | $this->symbol = $symbol; |
@@ -63,7 +67,7 @@ discard block |
||
63 | 67 | } |
64 | 68 | |
65 | 69 | /** |
66 | - * @param $value |
|
70 | + * @param NumberInterface $value |
|
67 | 71 | * |
68 | 72 | * @return Currency |
69 | 73 | */ |
@@ -50,6 +50,9 @@ discard block |
||
50 | 50 | return $this->precision; |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param NumberInterface $num |
|
55 | + */ |
|
53 | 56 | public function add($num) |
54 | 57 | { |
55 | 58 | $num = Numbers::makeOrDont($this, $num, $this->getPrecision()); |
@@ -99,7 +102,7 @@ discard block |
||
99 | 102 | * Note about precision: it uses the smaller of the two precisions (significant figures). |
100 | 103 | * |
101 | 104 | * @param $num |
102 | - * @return mixed |
|
105 | + * @return NumberInterface |
|
103 | 106 | */ |
104 | 107 | public function divide($num) |
105 | 108 | { |