| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4.5923 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | 9 | public function init() |
|
| 53 | { |
||
| 54 | 9 | if ($this->merchantId === null) { |
|
| 55 | throw new InvalidConfigException('Property `merchantId` must be set!'); |
||
| 56 | } |
||
| 57 | |||
| 58 | 9 | if ($this->merchantPassword === null) { |
|
| 59 | throw new InvalidConfigException('Property `merchantPassword` must be set!'); |
||
| 60 | } |
||
| 61 | |||
| 62 | 9 | if ($this->email === null) { |
|
| 63 | throw new InvalidConfigException('Property `email` must be set!'); |
||
| 64 | } |
||
| 65 | |||
| 66 | 9 | parent::init(); |
|
| 67 | 9 | } |
|
| 68 | |||
| 78 |