Merge pull request #106 from beltofte/ssl-status-retry-option

Add retry option to getSSLVerificationStatus()
This commit is contained in:
Junade
2019-09-20 02:45:40 +01:00
committed by GitHub

View File

@@ -32,16 +32,23 @@ class SSL implements API
}
/**
* @SuppressWarnings(PHPMD.BooleanArgumentFlag)
*
* Get SSL Verification Info for a Zone
*
* @param string $zoneID The ID of the zone
* @param bool $retry Immediately retry SSL Verification
* @return array|false
*/
public function getSSLVerificationStatus(string $zoneID)
public function getSSLVerificationStatus(string $zoneID, bool $retry = false)
{
$return = $this->adapter->get(
'zones/' . $zoneID . '/ssl/verification'
'zones/' . $zoneID . '/ssl/verification',
[
'retry' => $retry
]
);
$body = json_decode($return->getBody());
if (isset($body->result)) {
return $body;