Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
10 / 10 |
|
100.00% |
10 / 10 |
CRAP | |
100.00% |
1 / 1 |
Backup | |
100.00% |
10 / 10 |
|
100.00% |
10 / 10 |
10 | |
100.00% |
1 / 1 |
getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getDateCreated | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setDateCreated | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getDescription | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setDescription | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getSize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setSize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Vultr\VultrPhp\Services\Backups; |
6 | |
7 | use Vultr\VultrPhp\Util\Model; |
8 | |
9 | /** |
10 | * Holds snapshot information on the backup. |
11 | */ |
12 | class Backup extends Model |
13 | { |
14 | protected string $id; |
15 | protected string $dateCreated; |
16 | protected string $description; |
17 | protected int $size; |
18 | protected string $status; |
19 | |
20 | public function getId() : string |
21 | { |
22 | return $this->id; |
23 | } |
24 | |
25 | public function setId(string $id) : void |
26 | { |
27 | $this->id = $id; |
28 | } |
29 | |
30 | public function getDateCreated() : string |
31 | { |
32 | return $this->dateCreated; |
33 | } |
34 | |
35 | public function setDateCreated(string $date_created) : void |
36 | { |
37 | $this->dateCreated = $date_created; |
38 | } |
39 | |
40 | public function getDescription() : string |
41 | { |
42 | return $this->description; |
43 | } |
44 | |
45 | public function setDescription(string $description) : void |
46 | { |
47 | $this->description = $description; |
48 | } |
49 | |
50 | public function getSize() : int |
51 | { |
52 | return $this->size; |
53 | } |
54 | |
55 | public function setSize(int $size) : void |
56 | { |
57 | $this->size = $size; |
58 | } |
59 | |
60 | public function getStatus() : string |
61 | { |
62 | return $this->status; |
63 | } |
64 | |
65 | public function setStatus(string $status) : void |
66 | { |
67 | $this->status = $status; |
68 | } |
69 | } |