@@ -26,7 +26,6 @@ |
||
| 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); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * @return string |
|
| 45 | + * @return boolean |
|
| 46 | 46 | */ |
| 47 | 47 | public function equals(TypeInterface $other) |
| 48 | 48 | { |
@@ -43,6 +43,9 @@ |
||
| 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, |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use hiqdev\php\billing\action\ActionInterface; |
| 14 | 14 | use hiqdev\php\billing\charge\Charge; |
| 15 | 15 | use hiqdev\php\billing\charge\ChargeInterface; |
| 16 | -use hiqdev\php\billing\charge\ChargeModifier; |
|
| 17 | 16 | use hiqdev\php\billing\customer\CustomerInterface; |
| 18 | 17 | use hiqdev\php\billing\price\PriceInterface; |
| 19 | 18 | |
@@ -82,6 +82,9 @@ |
||
| 82 | 82 | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | + /** |
|
| 86 | + * @param string $name |
|
| 87 | + */ |
|
| 85 | 88 | public function ensureValidLimit($limit, $name) |
| 86 | 89 | { |
| 87 | 90 | $limit = static::ensureValidValue($limit); |