Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
19 / 19 |
|
100.00% |
19 / 19 |
CRAP | |
100.00% |
1 / 1 |
| VPSPlan | |
100.00% |
19 / 19 |
|
100.00% |
19 / 19 |
19 | |
100.00% |
1 / 1 |
| getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getVcpuCount | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setVcpuCount | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getRam | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setRam | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getDisk | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setDisk | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getDiskCount | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setDiskCount | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getBandwidth | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setBandwidth | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getMonthlyCost | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setMonthlyCost | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getLocations | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setLocations | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getResponseListName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Vultr\VultrPhp\Services\Plans; |
| 6 | |
| 7 | use Vultr\VultrPhp\Util\Model; |
| 8 | |
| 9 | /** |
| 10 | * Holds vps plan information |
| 11 | */ |
| 12 | class VPSPlan extends Model |
| 13 | { |
| 14 | protected string $id; |
| 15 | protected int $vcpuCount; |
| 16 | protected int $ram; |
| 17 | protected int $disk; |
| 18 | protected int $diskCount; |
| 19 | protected int $bandwidth; |
| 20 | protected float $monthlyCost; |
| 21 | protected string $type; |
| 22 | protected array $locations; |
| 23 | |
| 24 | public function getId() : string |
| 25 | { |
| 26 | return $this->id; |
| 27 | } |
| 28 | |
| 29 | public function setId(string $id) : void |
| 30 | { |
| 31 | $this->id = $id; |
| 32 | } |
| 33 | |
| 34 | public function getVcpuCount() : int |
| 35 | { |
| 36 | return $this->vcpuCount; |
| 37 | } |
| 38 | |
| 39 | public function setVcpuCount(int $vcpu) : void |
| 40 | { |
| 41 | $this->vcpuCount = $vcpu; |
| 42 | } |
| 43 | |
| 44 | public function getRam() : int |
| 45 | { |
| 46 | return $this->ram; |
| 47 | } |
| 48 | |
| 49 | public function setRam(int $ram) : void |
| 50 | { |
| 51 | $this->ram = $ram; |
| 52 | } |
| 53 | |
| 54 | public function getDisk() : int |
| 55 | { |
| 56 | return $this->disk; |
| 57 | } |
| 58 | |
| 59 | public function setDisk(int $size) : void |
| 60 | { |
| 61 | $this->disk = $size; |
| 62 | } |
| 63 | |
| 64 | public function getDiskCount() : int |
| 65 | { |
| 66 | return $this->diskCount; |
| 67 | } |
| 68 | |
| 69 | public function setDiskCount(int $disk_count) : void |
| 70 | { |
| 71 | $this->diskCount = $disk_count; |
| 72 | } |
| 73 | |
| 74 | public function getBandwidth() : int |
| 75 | { |
| 76 | return $this->bandwidth; |
| 77 | } |
| 78 | |
| 79 | public function setBandwidth(int $bandwidth) : void |
| 80 | { |
| 81 | $this->bandwidth = $bandwidth; |
| 82 | } |
| 83 | |
| 84 | public function getMonthlyCost() : float |
| 85 | { |
| 86 | return $this->monthlyCost; |
| 87 | } |
| 88 | |
| 89 | public function setMonthlyCost(float $monthly_cost) : void |
| 90 | { |
| 91 | $this->monthlyCost = $monthly_cost; |
| 92 | } |
| 93 | |
| 94 | public function getType() : string |
| 95 | { |
| 96 | return $this->type; |
| 97 | } |
| 98 | |
| 99 | public function setType(string $type) : void |
| 100 | { |
| 101 | $this->type = $type; |
| 102 | } |
| 103 | |
| 104 | public function getLocations() : array |
| 105 | { |
| 106 | return $this->locations; |
| 107 | } |
| 108 | |
| 109 | public function setLocations(array $locations) : void |
| 110 | { |
| 111 | $this->locations = $locations; |
| 112 | } |
| 113 | |
| 114 | public function getResponseListName() : string |
| 115 | { |
| 116 | return 'plans'; |
| 117 | } |
| 118 | } |