Deactivate::_getPayload()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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