DirectAdmin\LetsEncrypt\Lib\Domain::getDomain PHP Method

getDomain() public method

Get domain's name
public getDomain ( ) : String
return String
    public function getDomain()
    {
        return $this->domain;
    }

Usage Example

 /**
  * Solve a challenge
  *
  * @throws \Exception
  */
 public function solveChallenge()
 {
     if (empty($this->solvableChallenges)) {
         $this->solvableChallenges();
     }
     $domains = array_merge((array) $this->domain->getDomain(), $this->subdomains);
     foreach ($domains as $domain) {
         $challenge = $this->challenges[$domain][reset($this->solvableChallenges[$domain])];
         if ($challenge->solvable()) {
             $challenge->solve();
         } else {
             throw new \Exception('Defined unsolvable challenge for ' . $domain);
         }
     }
 }
All Usage Examples Of DirectAdmin\LetsEncrypt\Lib\Domain::getDomain