Deactivate   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A _getPayload() 0 4 1
A getResponse() 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 Deactivate extends AbstractLocation {
10
11
    protected function _getPayload() : array {
12
13
        return [
14
            'status' => 'deactivated',
15
        ];
16
    }
17
18
    /**
19
     * @throws Exception\InvalidResponse
20
     * @throws Exception\RateLimitReached
21
     * @throws Exception\ServiceUnavailable
22
     */
23
    public function getResponse() : Response\Account\Deactivate {
24
25
        return new Response\Account\Deactivate($this->_getRawResponse());
26
    }
27
}
28