| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function setVariableSymbol(string $vs) : Payment |
||
| 45 | { |
||
| 46 | 1 | if (!Validator::isVariableSymbol($vs)) |
|
| 47 | 1 | throw new \PaySys\PaySys\InvalidArgumentException(sprintf("Variable symbol must have minimal 1 and maximal 10 digits. '%s' is invalid.", $vs)); |
|
| 48 | |||
| 49 | 1 | $this->vs = $vs; |
|
| 50 | 1 | return $this; |
|
| 51 | } |
||
| 52 | |||
| 90 |