| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 44.44% |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | class Client extends GuzzleClient |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Client constructor. |
||
| 17 | * @param array $config |
||
| 18 | * @throws NotExistRequiredException |
||
| 19 | */ |
||
| 20 | 1 | public function __construct(array $config = []) |
|
| 21 | { |
||
| 22 | 1 | $cybozuConfig = new Config($config); |
|
| 23 | 1 | if (!$cybozuConfig->hasRequired()) { |
|
| 24 | throw new NotExistRequiredException('Parameters is invalid.'); |
||
| 25 | } |
||
| 26 | |||
| 27 | 1 | parent::__construct($cybozuConfig->toGuzzleConfig()); |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $prefix |
||
| 32 | * @throws RedirectResponseException |
||
| 33 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 34 | * @deprecated Due to changes in kintone specifications, this function is not working. |
||
| 35 | */ |
||
| 36 | public function connectionTest($prefix = '/'): void |
||
| 41 | } |
||
| 42 | } |
||
| 44 |