| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public static function setup($publicKey, $secretKey, $mode = 'live') |
||
| 23 | { |
||
| 24 | if (empty($secretKey) || empty($publicKey)) { |
||
| 25 | throw Exceptions::create('format.is_null'); |
||
| 26 | } |
||
| 27 | if (empty($mode)) { |
||
| 28 | throw Exceptions::create('format.null_mode'); |
||
| 29 | } |
||
| 30 | |||
| 31 | self::$secretKey = $secretKey; |
||
| 32 | self::$publicKey = $publicKey; |
||
| 33 | self::$mode = $mode; |
||
| 34 | } |
||
| 35 | } |
||
| 36 |