Completed
Push — dev ( a0ca58...083710 )
by Jordan
02:29
created
src/Samsara/Fermat/Types/Fraction.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -24,6 +24,10 @@  discard block
 block discarded – undo
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
 
@@ -325,6 +329,9 @@  discard block
 block discarded – undo
325 329
         return $lcm;
326 330
     }
327 331
 
332
+    /**
333
+     * @param integer $base
334
+     */
328 335
     public function convertToBase($base)
329 336
     {
330 337
         $converter = new BaseConverter($this->getBase(), $base);
Please login to merge, or discard this patch.
src/Samsara/Fermat/Types/Number.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
         return $this->precision;
53 53
     }
54 54
 
55
+    /**
56
+     * @param NumberInterface $num
57
+     */
55 58
     public function add($num)
56 59
     {
57 60
         if (is_object($num) && method_exists($num, 'asDecimal')) {
@@ -113,8 +116,8 @@  discard block
 block discarded – undo
113 116
      * Note about precision: it uses the smaller of the two precisions (significant figures).
114 117
      *
115 118
      * @param $num
116
-     * @param $precision
117
-     * @return mixed
119
+     * @param integer $precision
120
+     * @return NumberInterface
118 121
      */
119 122
     public function divide($num, $precision = null)
120 123
     {
@@ -421,6 +424,9 @@  discard block
 block discarded – undo
421 424
 
422 425
     }
423 426
 
427
+    /**
428
+     * @param ImmutableNumber $num
429
+     */
424 430
     public function getGreatestCommonDivisor($num)
425 431
     {
426 432
         /** @var ImmutableNumber $num */
Please login to merge, or discard this patch.