Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
22 / 22
100.00% covered (success)
100.00%
22 / 22
CRAP
100.00% covered (success)
100.00%
1 / 1
BlockStorage
100.00% covered (success)
100.00%
22 / 22
100.00% covered (success)
100.00%
22 / 22
22
100.00% covered (success)
100.00%
1 / 1
 getId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDateCreated
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDateCreated
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getCost
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCost
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getStatus
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setStatus
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getSizeGb
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSizeGb
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getRegion
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setRegion
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getAttachedToInstance
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAttachedToInstance
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getLabel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLabel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMountId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMountId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getBlockType
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setBlockType
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getResponseName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getUpdateParams
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Vultr\VultrPhp\Services\BlockStorage;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds block storage device information.
11 */
12class BlockStorage extends Model
13{
14    protected string $id;
15    protected string $dateCreated;
16    protected float $cost;
17    protected string $status;
18    protected int $sizeGb;
19    protected string $region;
20    protected string $attachedToInstance;
21    protected string $label;
22    protected string $mountId;
23    protected string $blockType;
24
25    public function getId() : string
26    {
27        return $this->id;
28    }
29
30    public function setId(string $id) : void
31    {
32        $this->id = $id;
33    }
34
35    public function getDateCreated() : string
36    {
37        return $this->dateCreated;
38    }
39
40    public function setDateCreated(string $date_created) : void
41    {
42        $this->dateCreated = $date_created;
43    }
44
45    public function getCost() : float
46    {
47        return $this->cost;
48    }
49
50    public function setCost(float $cost) : void
51    {
52        $this->cost = $cost;
53    }
54
55    public function getStatus() : string
56    {
57        return $this->status;
58    }
59
60    public function setStatus(string $status) : void
61    {
62        $this->status = $status;
63    }
64
65    public function getSizeGb() : int
66    {
67        return $this->sizeGb;
68    }
69
70    public function setSizeGb(int $size_gb) : void
71    {
72        $this->sizeGb = $size_gb;
73    }
74
75    public function getRegion() : string
76    {
77        return $this->region;
78    }
79
80    public function setRegion(string $region) : void
81    {
82        $this->region = $region;
83    }
84
85    public function getAttachedToInstance() : string
86    {
87        return $this->attachedToInstance;
88    }
89
90    public function setAttachedToInstance(string $attached_to_instance) : void
91    {
92        $this->attachedToInstance = $attached_to_instance;
93    }
94
95    public function getLabel() : string
96    {
97        return $this->label;
98    }
99
100    public function setLabel(string $label) : void
101    {
102        $this->label = $label;
103    }
104
105    public function getMountId() : string
106    {
107        return $this->mountId;
108    }
109
110    public function setMountId(string $mount_id) : void
111    {
112        $this->mountId = $mount_id;
113    }
114
115    public function getBlockType() : string
116    {
117        return $this->blockType;
118    }
119
120    public function setBlockType(string $block_type) : void
121    {
122        $this->blockType = $block_type;
123    }
124
125    public function getResponseName() : string
126    {
127        return 'block';
128    }
129
130    public function getUpdateParams() : array
131    {
132        return ['label', 'size_gb'];
133    }
134}
135