DirectAdmin\LetsEncrypt\Lib\Challenges\BaseChallenge::__construct PHP Method

__construct() public method

Challenge constructor
public __construct ( stdClass $challenge, string $location, Domain $domain, string $challengeDomain )
$challenge stdClass Challenge properties from ACME
$location string Location
$domain DirectAdmin\LetsEncrypt\Lib\Domain Main Domain object
$challengeDomain string Domain or subdomain to be challenged
    function __construct($challenge, $location, $domain, $challengeDomain)
    {
        $this->type = $challenge->type;
        $this->status = $challenge->status;
        $this->uri = $challenge->uri;
        $this->token = $challenge->token;
        $this->location = $location;
        $this->domain = $domain;
        $this->challengeDomain = $challengeDomain;
    }