Completed
Pull Request — dev (#12)
by Jordan
02:12
created
src/Samsara/Fermat/Types/Number.php 1 patch
Doc Comments   +13 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
 
29 29
     protected $extensions = true;
30 30
 
31
+    /**
32
+     * @param integer $precision
33
+     */
31 34
     public function __construct($value, $precision = null, $base = 10)
32 35
     {
33 36
         $this->base = $base;
@@ -148,7 +151,7 @@  discard block
 block discarded – undo
148 151
      * Note about precision: it uses the smaller of the two precisions (significant figures).
149 152
      *
150 153
      * @param $num
151
-     * @param $precision
154
+     * @param integer $precision
152 155
      * @return DecimalInterface|NumberInterface
153 156
      */
154 157
     public function divide($num, $precision = null)
@@ -1011,6 +1014,9 @@  discard block
 block discarded – undo
1011 1014
 
1012 1015
     }
1013 1016
 
1017
+    /**
1018
+     * @param ImmutableNumber $num
1019
+     */
1014 1020
     public function getGreatestCommonDivisor($num)
1015 1021
     {
1016 1022
         /** @var ImmutableNumber $num */
@@ -1405,6 +1411,10 @@  discard block
 block discarded – undo
1405 1411
         return strpos($this->value, '.');
1406 1412
     }
1407 1413
 
1414
+    /**
1415
+     * @param integer $pos
1416
+     * @param integer $add
1417
+     */
1408 1418
     protected function reduceDecimals(array $decimalArray, $pos, $add)
1409 1419
     {
1410 1420
 
@@ -1454,9 +1464,9 @@  discard block
 block discarded – undo
1454 1464
     abstract public function modulo($mod);
1455 1465
 
1456 1466
     /**
1457
-     * @param $mod
1467
+     * @param NumberInterface $mod
1458 1468
      *
1459
-     * @return NumberInterface|DecimalInterface
1469
+     * @return NumberInterface
1460 1470
      */
1461 1471
     abstract public function continuousModulo($mod);
1462 1472
 
Please login to merge, or discard this patch.