Total Complexity | 5 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class Restore extends Action |
||
12 | { |
||
13 | /** |
||
14 | * Action parameter |
||
15 | * |
||
16 | * @const ACTION |
||
17 | */ |
||
18 | const ACTION = 'enable_backups'; |
||
19 | |||
20 | /** |
||
21 | * Action HTTP Method |
||
22 | * |
||
23 | * @const method |
||
24 | */ |
||
25 | const METHOD = 'POST'; |
||
26 | |||
27 | /** |
||
28 | * Image ID |
||
29 | * |
||
30 | * @var int $image |
||
31 | */ |
||
32 | protected $image; |
||
33 | |||
34 | /** |
||
35 | * Constructor for Restore Action |
||
36 | * |
||
37 | * @param Array $values |
||
38 | */ |
||
39 | 5 | public function __construct(Array $values) |
|
50 | 3 | } |
|
51 | |||
52 | /** |
||
53 | * Return the body of the request |
||
54 | * |
||
55 | * @return string json representation of the body |
||
56 | */ |
||
57 | 2 | public function getBody() |
|
65 |