Completed
Branch master (ae6db9)
by Matt
01:40
created

EnablePrivateNetworking::getBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Billow\Actions;
3
4
/**
5
 * @author Matt Frost<[email protected]>
6
 * @package Billow
7
 * @subpackage Actions
8
 * @license http://opensource.org/licenses/MIT MIT
9
 */
10
class EnablePrivateNetworking extends Action
11
{
12
    /**
13
     * Action parameter
14
     *
15
     * @const ACTION
16
     */
17
    const ACTION = 'enable_private_networking';
18
19
    /**
20
     * Action HTTP Method
21
     *
22
     * @const method
23
     */
24
    const METHOD = 'POST';
25
26
    /**
27
     * Return the body of the request
28
     *
29
     * @return string json representation of the body
30
     */
31 1
    public function getBody()
32
    {
33 1
        return json_encode([
34 1
            'type' => self::ACTION
35
        ]);
36
    }
37
}
38
39