Passed
Branch master (fc5382)
by Fabian
03:13
created

ChallengeError   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
dl 0
loc 18
ccs 0
cts 4
cp 0
rs 10
c 2
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace LE_ACME2\Response\Authorization\Struct;
4
5
class ChallengeError {
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) {
19
20
        $this->type = $type;
21
        $this->detail = $detail;
22
        $this->status = $status;
23
    }
24
}