Completed
Push — dev ( c6e1e9...6f89f3 )
by Jordan
02:20
created
src/Samsara/Fermat/Context/GaussianContext.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -85,6 +85,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Samsara/Fermat/Provider/Stats/Stats.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Samsara/Fermat/Types/Fraction.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,8 +221,8 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Samsara/Fermat/Types/Number.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
@@ -550,6 +553,9 @@  discard block
 block discarded – undo
550 553
         }
551 554
     }
552 555
     
556
+    /**
557
+     * @param integer $value
558
+     */
553 559
     public function isGreaterThan($value): bool
554 560
     {
555 561
         $value = Numbers::makeOrDont(Numbers::IMMUTABLE, $value, $this->getPrecision());
@@ -582,6 +588,9 @@  discard block
 block discarded – undo
582 588
         }
583 589
     }
584 590
 
591
+    /**
592
+     * @param integer $value
593
+     */
585 594
     public function isLessThanOrEqualTo($value): bool
586 595
     {
587 596
         $value = Numbers::makeOrDont(Numbers::IMMUTABLE, $value, $this->getPrecision());
Please login to merge, or discard this patch.
src/Samsara/Fermat/Values/Currency.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
63 67
     }
64 68
 
65 69
     /**
66
-     * @param $value
70
+     * @param NumberInterface $value
67 71
      *
68 72
      * @return Currency
69 73
      */
Please login to merge, or discard this patch.