Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
30 | public function setAmount($amt) : IPayment |
||
31 | { |
||
32 | 1 | if (!Validator::isAmount($amt)) |
|
33 | 1 | throw new \PaySys\PaySys\InvalidArgumentException(sprintf("Amount must have maximal 9 digits before dot and maximal 2 digits after. '%s' is invalid.", $amt)); |
|
34 | |||
35 | 1 | $this->amt = $amt; |
|
36 | 1 | return $this; |
|
37 | } |
||
38 | |||
90 |