Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
21 / 21
100.00% covered (success)
100.00%
21 / 21
CRAP
100.00% covered (success)
100.00%
1 / 1
ObjectStorage
100.00% covered (success)
100.00%
21 / 21
100.00% covered (success)
100.00%
21 / 21
21
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
 getClusterId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setClusterId
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
 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
 getLocation
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setLocation
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
 getS3Hostname
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setS3Hostname
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getS3AccessKey
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setS3AccessKey
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getS3SecretKey
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setS3SecretKey
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\ObjectStorage;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds Object storage information.
11 */
12class ObjectStorage extends Model
13{
14    protected string $id;
15    protected string $dateCreated;
16    protected int $clusterId;
17    protected string $region;
18    protected string $location;
19    protected string $label;
20    protected string $status;
21    protected string $s3Hostname;
22    protected string $s3AccessKey;
23    protected string $s3SecretKey;
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 getClusterId() : int
46    {
47        return $this->clusterId;
48    }
49
50    public function setClusterId(int $cluster_id) : void
51    {
52        $this->clusterId = $cluster_id;
53    }
54
55    public function getRegion() : string
56    {
57        return $this->region;
58    }
59
60    public function setRegion(string $region) : void
61    {
62        $this->region = $region;
63    }
64
65    public function getLabel() : string
66    {
67        return $this->label;
68    }
69
70    public function setLabel(string $label) : void
71    {
72        $this->label = $label;
73    }
74
75    public function getLocation() : string
76    {
77        return $this->location;
78    }
79
80    public function setLocation(string $location) : void
81    {
82        $this->location = $location;
83    }
84
85    public function getStatus() : string
86    {
87        return $this->status;
88    }
89
90    public function setStatus(string $status) : void
91    {
92        $this->status = $status;
93    }
94
95    public function getS3Hostname() : string
96    {
97        return $this->s3Hostname;
98    }
99
100    public function setS3Hostname(string $s3_hostname) : void
101    {
102        $this->s3Hostname = $s3_hostname;
103    }
104
105    public function getS3AccessKey() : string
106    {
107        return $this->s3AccessKey;
108    }
109
110    public function setS3AccessKey(string $s3_access_key) : void
111    {
112        $this->s3AccessKey = $s3_access_key;
113    }
114
115    public function getS3SecretKey() : string
116    {
117        return $this->s3SecretKey;
118    }
119
120    public function setS3SecretKey(string $s3_secret_key) : void
121    {
122        $this->s3SecretKey = $s3_secret_key;
123    }
124
125    public function getUpdateParams() : array
126    {
127        return ['label'];
128    }
129}