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

GetDirectory   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 8
eloc 9
dl 0
loc 32
ccs 0
cts 16
cp 0
rs 10
c 2
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getWebsite() 0 2 1
A getRevokeCert() 0 2 1
A getNewNonce() 0 2 1
A getNewAccount() 0 2 1
A getTermsOfService() 0 2 1
A getCaaIdentities() 0 2 1
A getNewOrder() 0 2 1
A getKeyChange() 0 2 1
1
<?php
2
3
namespace LE_ACME2\Response;
4
5
class GetDirectory extends AbstractResponse {
6
7
    public function getKeyChange() : string {
8
        return $this->_raw->body['keyChange'];
9
    }
10
11
    public function getNewAccount() : string {
12
        return $this->_raw->body['newAccount'];
13
    }
14
15
    public function getNewNonce() : string {
16
        return $this->_raw->body['newNonce'];
17
    }
18
19
    public function getNewOrder() : string {
20
        return $this->_raw->body['newOrder'];
21
    }
22
23
    public function getRevokeCert() : string {
24
        return $this->_raw->body['revokeCert'];
25
    }
26
    
27
    public function getTermsOfService() : string {
28
        return $this->_raw->body['meta']['termsOfService'];
29
    }
30
31
    public function getWebsite() : string {
32
        return $this->_raw->body['meta']['website'];
33
    }
34
35
    public function getCaaIdentities() : string {
36
        return $this->_raw->body['meta']['caaIdentities'];
37
    }
38
}
39