@@ -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, |
@@ -19,11 +19,17 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | class Discount extends Modifier |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @param integer $value |
|
| 24 | + */ |
|
| 22 | 25 | public function fixed($value) |
| 23 | 26 | { |
| 24 | 27 | return new FixedDiscount($value, $this->addons); |
| 25 | 28 | } |
| 26 | 29 | |
| 30 | + /** |
|
| 31 | + * @param integer $step |
|
| 32 | + */ |
|
| 27 | 33 | public function grows($step, $start = null) |
| 28 | 34 | { |
| 29 | 35 | return new GrowingDiscount($step, $start, $this->addons); |