| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 11 | public function __construct(array $config) |
|
| 22 | { |
||
| 23 | 11 | if(!isset($config['key']) || !isset($config['secret'])) { |
|
| 24 | 1 | throw new InvalidArgumentException('Array does not contain both key and secret.'); |
|
| 25 | } |
||
| 26 | 11 | $this->key = $config['key']; |
|
| 27 | 11 | $this->secret = $config['secret']; |
|
| 28 | 11 | } |
|
| 29 | |||
| 47 | } |