Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
10 / 10
CRAP
100.00% covered (success)
100.00%
1 / 1
PublicISO
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
10 / 10
10
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
 getName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDescription
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDescription
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMd5sum
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMd5sum
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getResponseListName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getModelExceptionClass
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\ISO;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds public iso information
11 */
12class PublicISO extends Model
13{
14    protected string $id;
15    protected string $name;
16    protected string $description;
17    protected string $md5sum;
18
19    public function getId() : string
20    {
21        return $this->id;
22    }
23
24    public function setId(string $id) : void
25    {
26        $this->id = $id;
27    }
28
29    public function getName() : string
30    {
31        return $this->name;
32    }
33
34    public function setName(string $name) : void
35    {
36        $this->name = $name;
37    }
38
39    public function getDescription() : string
40    {
41        return $this->description;
42    }
43
44    public function setDescription(string $description) : void
45    {
46        $this->description = $description;
47    }
48
49    public function getMd5sum() : string
50    {
51        return $this->md5sum;
52    }
53
54    public function setMd5sum(string $md5sum) : void
55    {
56        $this->md5sum = $md5sum;
57    }
58
59    public function getResponseListName() : string
60    {
61        return 'public_isos';
62    }
63
64    public function getModelExceptionClass() : string
65    {
66        return str_replace('PublicISO', 'ISO', parent::getModelExceptionClass());
67    }
68}