Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class ChallengeError implements ChallengeErrorConstructorInterface { |
||
6 | |||
7 | const TYPE_ERROR_DNS = 'urn:ietf:params:acme:error:dns'; |
||
8 | |||
9 | /** @var string $type */ |
||
10 | public $type; |
||
11 | |||
12 | /** @var string $detail */ |
||
13 | public $detail; |
||
14 | |||
15 | /** @var int $status */ |
||
16 | public $status; |
||
17 | |||
18 | public function __construct(string $type, string $detail, int $status) { |
||
23 | } |
||
24 | |||
25 | public static function createFrom(array $array) : static { |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | public function hasStatusServerError() : bool { |
||
39 | } |