| Total Complexity | 4 | 
| Total Lines | 29 | 
| Duplicated Lines | 0 % | 
| Coverage | 55.56% | 
| 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 | 3 | public function __construct(array $config = []) | |
| 21 |     { | ||
| 22 | 3 | $cybozuConfig = new Config($config); | |
| 23 | 3 |         if (!$cybozuConfig->hasRequired()) { | |
| 24 | 1 |             throw new NotExistRequiredException('Parameters is invalid.'); | |
| 25 | } | ||
| 26 | |||
| 27 | 3 | 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 |