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

ChallengeError::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 3
crap 2
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
}