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

GetData   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponse() 0 3 1
A _getPayload() 0 3 1
1
<?php
2
3
namespace LE_ACME2\Request\Account;
4
5
use LE_ACME2\Response;
6
7
use LE_ACME2\Exception;
8
9
class GetData extends AbstractLocation {
10
    
11
    protected function _getPayload() : array {
12
        
13
        return [];
14
    }
15
16
    /**
17
     * @return Response\AbstractResponse|Response\Account\GetData
18
     * @throws Exception\InvalidResponse
19
     * @throws Exception\RateLimitReached
20
     */
21
    public function getResponse() : Response\AbstractResponse {
22
        
23
        return new Response\Account\GetData($this->_getRawResponse());
24
    }
25
}