Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
1 / 1 |
IsoStatus | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
1 / 1 |
getState | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setState | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getIsoId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setIsoId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getModelExceptionClass | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Vultr\VultrPhp\Services\Instances; |
6 | |
7 | use Vultr\VultrPhp\Util\Model; |
8 | |
9 | /** |
10 | * Holds iso mount status information. |
11 | */ |
12 | class IsoStatus extends Model |
13 | { |
14 | protected string $state; |
15 | protected ?string $isoId = null; |
16 | |
17 | public function getState() : string |
18 | { |
19 | return $this->state; |
20 | } |
21 | |
22 | public function setState(string $state) : void |
23 | { |
24 | $this->state = $state; |
25 | } |
26 | |
27 | public function getIsoId() : ?string |
28 | { |
29 | return $this->isoId; |
30 | } |
31 | |
32 | public function setIsoId(string $iso_id) : void |
33 | { |
34 | $this->isoId = $iso_id; |
35 | } |
36 | |
37 | public function getModelExceptionClass() : string |
38 | { |
39 | return str_replace('IsoStatusException', 'InstanceException', parent::getModelExceptionClass()); |
40 | } |
41 | } |