@@ -34,8 +34,8 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * Construct and initialize money object. |
| 36 | 36 | * |
| 37 | - * @param string|int|float $amount Amount. |
|
| 38 | - * @param Currency|string|null $currency Currency. |
|
| 37 | + * @param integer $amount Amount. |
|
| 38 | + * @param string $currency Currency. |
|
| 39 | 39 | */ |
| 40 | 40 | public function __construct( $amount = 0, $currency = null ) { |
| 41 | 41 | $this->set_amount( $amount ); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | /** |
| 93 | 93 | * Set amount. |
| 94 | 94 | * |
| 95 | - * @param mixed $amount Amount. |
|
| 95 | + * @param integer $amount Amount. |
|
| 96 | 96 | */ |
| 97 | 97 | public function set_amount( $amount ) { |
| 98 | 98 | $this->amount = floatval( $amount ); |