@@ -30,8 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Calculate charge for given price. |
33 | - * @param PriceInterface $action |
|
34 | - * @return ChargeInterface |
|
33 | + * @return null|Charge |
|
35 | 34 | */ |
36 | 35 | public function calculateCharge(PriceInterface $quantity); |
37 | 36 | |
@@ -49,13 +48,13 @@ discard block |
||
49 | 48 | |
50 | 49 | /** |
51 | 50 | * Returns quantity ot this action. |
52 | - * @return QuantityInterface |
|
51 | + * @return \hiqdev\php\units\QuantityInterface |
|
53 | 52 | */ |
54 | 53 | public function getQuantity(); |
55 | 54 | |
56 | 55 | /** |
57 | 56 | * Returns time ot this action. |
58 | - * @return DateTime |
|
57 | + * @return \DateTime |
|
59 | 58 | */ |
60 | 59 | public function getTime(); |
61 | 60 | } |
@@ -22,7 +22,6 @@ |
||
22 | 22 | class SimpleAction extends AbstractAction |
23 | 23 | { |
24 | 24 | /** |
25 | - * @param mixed $id |
|
26 | 25 | * @param CustomerInterface $customer |
27 | 26 | * @param TargetInterface $target |
28 | 27 | * @param QuantityInterface $quantity |
@@ -28,6 +28,9 @@ |
||
28 | 28 | */ |
29 | 29 | protected $uniqId; |
30 | 30 | |
31 | + /** |
|
32 | + * @param integer $id |
|
33 | + */ |
|
31 | 34 | public function __construct($id, TypeInterface $type) |
32 | 35 | { |
33 | 36 | $this->id = $id; |