1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

fix: merge sync leftover

This commit is contained in:
Torsten Dittmann 2022-05-11 19:05:43 +02:00
parent 784844b03e
commit 4b632b13ea
2 changed files with 9 additions and 32 deletions

View file

@ -5,6 +5,7 @@ use Appwrite\Network\Validator\CNAME;
use Appwrite\Resque\Worker;
use Utopia\App;
use Utopia\CLI\Console;
use Utopia\Database\Database;
use Utopia\Database\Document;
use Utopia\Database\Query;
use Utopia\Database\Validator\Authorization;

View file

@ -7,8 +7,7 @@ use Utopia\Database\Document;
class Certificate extends Event
{
protected bool $validateTarget = false;
protected bool $validateCNAME = false;
protected bool $skipRenewCheck = false;
protected ?Document $domain = null;
public function __construct()
@ -40,49 +39,26 @@ class Certificate extends Event
}
/**
* Set if the target needs be validated.
* Set if the certificate needs to be validated.
*
* @param bool $validateTarget
* @param bool $skipRenewCheck
* @return self
*/
public function setValidateTarget(bool $validateTarget): self
public function setSkipRenewCheck(bool $skipRenewCheck): self
{
$this->validateTarget = $validateTarget;
$this->skipRenewCheck = $skipRenewCheck;
return $this;
}
/**
* Return if the domain target will be validated.
* Return if the certificate needs be validated.
*
* @return bool
*/
public function getValidateTarget(): bool
public function getSkipRenewCheck(): bool
{
return $this->validateTarget;
}
/**
* Set if the CNAME needs to be validated.
*
* @param bool $validateCNAME
* @return self
*/
public function setValidateCNAME(bool $validateCNAME): self
{
$this->validateCNAME = $validateCNAME;
return $this;
}
/**
* Return if the CNAME will be validated.
*
* @return bool
*/
public function getValidateCNAME(): bool
{
return $this->validateCNAME;
return $this->skipRenewCheck;
}
/**