Completed
Push — master ( 04b9b6...0cee6b )
by Andrii
04:13
created
src/charge/modifiers/addons/Discount.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -122,6 +122,9 @@
 block discarded – undo
122 122
         }
123 123
     }
124 124
 
125
+    /**
126
+     * @param string $name
127
+     */
125 128
     public function ensureSameType(self $other, $name)
126 129
     {
127 130
         if ($this->isRelative() && !$other->isRelative()) {
Please login to merge, or discard this patch.
tests/unit/charge/modifiers/FixedDiscountTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
         $this->assertAbsolute($this->value, $abs);
44 44
     }
45 45
 
46
+    /**
47
+     * @param FixedDiscount $abs
48
+     */
46 49
     public function assertAbsolute($value, $abs)
47 50
     {
48 51
         $this->assertEquals($value, $abs->getValue()->getValue());
@@ -58,6 +61,9 @@  discard block
 block discarded – undo
58 61
         $this->assertRelative($this->rate, $rel);
59 62
     }
60 63
 
64
+    /**
65
+     * @param FixedDiscount $rel
66
+     */
61 67
     protected function assertRelative($rate, $rel)
62 68
     {
63 69
         $this->assertSame($rate, $rel->getValue()->getValue());
@@ -77,6 +83,9 @@  discard block
 block discarded – undo
77 83
         $this->assertCharges($rel, $this->value);
78 84
     }
79 85
 
86
+    /**
87
+     * @param FixedDiscount $fd
88
+     */
80 89
     public function assertCharges($fd, $sum)
81 90
     {
82 91
         $action = $this->createAction($this->prepaid->multiply(2));
Please login to merge, or discard this patch.