Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
16 / 16 |
|
100.00% |
16 / 16 |
CRAP | |
100.00% |
1 / 1 |
| Snapshot | |
100.00% |
16 / 16 |
|
100.00% |
16 / 16 |
16 | |
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 | |||
| getCompressedSize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setCompressedSize | |
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 | |||
| getOsId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setOsId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getAppId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setAppId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Vultr\VultrPhp\Services\Snapshots; |
| 6 | |
| 7 | use Vultr\VultrPhp\Util\Model; |
| 8 | |
| 9 | /** |
| 10 | * Holds snapshot information. |
| 11 | */ |
| 12 | class Snapshot extends Model |
| 13 | { |
| 14 | protected string $id; |
| 15 | protected string $dateCreated; |
| 16 | protected string $description; |
| 17 | protected int $size; |
| 18 | protected int $compressedSize; |
| 19 | protected string $status; |
| 20 | protected int $osId; |
| 21 | protected int $appId; |
| 22 | |
| 23 | public function getId() : string |
| 24 | { |
| 25 | return $this->id; |
| 26 | } |
| 27 | |
| 28 | public function setId(string $id) : void |
| 29 | { |
| 30 | $this->id = $id; |
| 31 | } |
| 32 | |
| 33 | public function getDateCreated() : string |
| 34 | { |
| 35 | return $this->dateCreated; |
| 36 | } |
| 37 | |
| 38 | public function setDateCreated(string $date_created) : void |
| 39 | { |
| 40 | $this->dateCreated = $date_created; |
| 41 | } |
| 42 | |
| 43 | public function getDescription() : string |
| 44 | { |
| 45 | return $this->description; |
| 46 | } |
| 47 | |
| 48 | public function setDescription(string $description) : void |
| 49 | { |
| 50 | $this->description = $description; |
| 51 | } |
| 52 | |
| 53 | public function getSize() : int |
| 54 | { |
| 55 | return $this->size; |
| 56 | } |
| 57 | |
| 58 | public function setSize(int $size) : void |
| 59 | { |
| 60 | $this->size = $size; |
| 61 | } |
| 62 | |
| 63 | public function getCompressedSize() : int |
| 64 | { |
| 65 | return $this->compressedSize; |
| 66 | } |
| 67 | |
| 68 | public function setCompressedSize(int $compressed_size) : void |
| 69 | { |
| 70 | $this->compressedSize = $compressed_size; |
| 71 | } |
| 72 | |
| 73 | public function getStatus() : string |
| 74 | { |
| 75 | return $this->status; |
| 76 | } |
| 77 | |
| 78 | public function setStatus(string $status) : void |
| 79 | { |
| 80 | $this->status = $status; |
| 81 | } |
| 82 | |
| 83 | public function getOsId() : int |
| 84 | { |
| 85 | return $this->osId; |
| 86 | } |
| 87 | |
| 88 | public function setOsId(int $os_id) : void |
| 89 | { |
| 90 | $this->osId = $os_id; |
| 91 | } |
| 92 | |
| 93 | public function getAppId() : int |
| 94 | { |
| 95 | return $this->appId; |
| 96 | } |
| 97 | |
| 98 | public function setAppId(int $app_id) : void |
| 99 | { |
| 100 | $this->appId = $app_id; |
| 101 | } |
| 102 | } |