Completed
Push — master ( cb1c4d...bab678 )
by Andrii
04:49
created
src/plan/PlanRepositoryInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
26 26
 
27 27
     /**
28 28
      * Finds suitable plans for given order: customer + actions.
29
-     * @param ActionInterface $action
30 29
      * @return PlanInterface[] array: actionKey => plan
31 30
      */
32 31
     public function findByOrder(OrderInterface $order);
Please login to merge, or discard this patch.
src/type/Type.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-     * @return string
45
+     * @return boolean
46 46
      */
47 47
     public function equals(TypeInterface $other)
48 48
     {
Please login to merge, or discard this patch.
src/price/PriceFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
         return $this->{$method}($dto);
52 52
     }
53 53
 
54
+    /**
55
+     * @param string $type
56
+     */
54 57
     public function findClassForType($type)
55 58
     {
56 59
         if (isset($this->types[$type])) {
Please login to merge, or discard this patch.
src/price/EnumPrice.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
      */
44 44
     protected $sums;
45 45
 
46
+    /**
47
+     * @param string|null $id
48
+     */
46 49
     public function __construct(
47 50
                             $id,
48 51
         TypeInterface       $type,
Please login to merge, or discard this patch.
src/charge/Aggregator.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -116,11 +116,17 @@  discard block
 block discarded – undo
116 116
         return $date->modify('first day of this month midnight');
117 117
     }
118 118
 
119
+    /**
120
+     * @return Money
121
+     */
119 122
     public function generalizeSum(ChargeInterface $charge)
120 123
     {
121 124
         return $charge->getSum();
122 125
     }
123 126
 
127
+    /**
128
+     * @return QuantityInterface
129
+     */
124 130
     public function generalizeQuantity(ChargeInterface $charge)
125 131
     {
126 132
         return $charge->getUsage();
@@ -131,6 +137,9 @@  discard block
 block discarded – undo
131 137
         return $charge->getAction()->getCustomer();
132 138
     }
133 139
 
140
+    /**
141
+     * @return null|\hiqdev\php\billing\target\TargetInterface
142
+     */
134 143
     public function generalizeTarget(ChargeInterface $charge)
135 144
     {
136 145
         $priceTarget = $charge->getPrice()->getTarget();
@@ -141,6 +150,9 @@  discard block
 block discarded – undo
141 150
         /// return $priceTarget->getId() ? $priceTarget : new Target($charge->getSale()->getPlan()->getId(), 'plan');
142 151
     }
143 152
 
153
+    /**
154
+     * @return null|\hiqdev\php\billing\plan\PlanInterface
155
+     */
144 156
     public function generalizePlan(ChargeInterface $charge)
145 157
     {
146 158
         return $charge->getPrice()->getPlan();
Please login to merge, or discard this patch.