| Conditions | 6 |
| Paths | 32 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function __construct(array $config) |
||
| 20 | { |
||
| 21 | if (array_key_exists('api_key', $config)) $this->_api_key = $config['api_key']; |
||
| 22 | if (array_key_exists('api_secret', $config)) $this->_api_secret = $config['api_secret']; |
||
| 23 | if (array_key_exists('app_id', $config)) $this->_app_id = $config['app_id']; |
||
| 24 | if (array_key_exists('app_secret', $config)) $this->_app_secret = $config['app_secret']; |
||
| 25 | if (array_key_exists('site_key', $config)) $this->setSiteKey($config['site_key']); |
||
| 26 | } |
||
| 78 |