Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
15 / 15 |
|
100.00% |
15 / 15 |
CRAP | |
100.00% |
1 / 1 |
| ISO | |
100.00% |
15 / 15 |
|
100.00% |
15 / 15 |
15 | |
100.00% |
1 / 1 |
| getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getDateCreated | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setDateCreated | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getFilename | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setFilename | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getSize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getMd5sum | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setMd5sum | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getSha512sum | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setSha512sum | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getResponseName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Vultr\VultrPhp\Services\ISO; |
| 6 | |
| 7 | use Vultr\VultrPhp\Util\Model; |
| 8 | |
| 9 | /** |
| 10 | * Holds ISO information. |
| 11 | */ |
| 12 | class ISO extends Model |
| 13 | { |
| 14 | protected string $id; |
| 15 | protected string $dateCreated; |
| 16 | protected string $filename; |
| 17 | protected int $size; |
| 18 | protected string $md5sum; |
| 19 | protected string $sha512sum; |
| 20 | protected string $status; |
| 21 | |
| 22 | public function getId() : string |
| 23 | { |
| 24 | return $this->id; |
| 25 | } |
| 26 | |
| 27 | public function setId(string $id) : void |
| 28 | { |
| 29 | $this->id = $id; |
| 30 | } |
| 31 | |
| 32 | public function getDateCreated() : string |
| 33 | { |
| 34 | return $this->dateCreated; |
| 35 | } |
| 36 | |
| 37 | public function setDateCreated(string $date_created) : void |
| 38 | { |
| 39 | $this->dateCreated = $date_created; |
| 40 | } |
| 41 | |
| 42 | public function getFilename() : string |
| 43 | { |
| 44 | return $this->filename; |
| 45 | } |
| 46 | |
| 47 | public function setFilename(string $file_name) : void |
| 48 | { |
| 49 | $this->filename = $file_name; |
| 50 | } |
| 51 | |
| 52 | public function getSize() : int |
| 53 | { |
| 54 | return $this->size; |
| 55 | } |
| 56 | |
| 57 | public function setSize(int $size) : void |
| 58 | { |
| 59 | $this->size = $size; |
| 60 | } |
| 61 | |
| 62 | public function getMd5sum() : string |
| 63 | { |
| 64 | return $this->md5sum; |
| 65 | } |
| 66 | |
| 67 | public function setMd5sum(string $md5sum) : void |
| 68 | { |
| 69 | $this->md5sum = $md5sum; |
| 70 | } |
| 71 | |
| 72 | public function getSha512sum() : string |
| 73 | { |
| 74 | return $this->sha512sum; |
| 75 | } |
| 76 | |
| 77 | public function setSha512sum(string $sha512sum) : void |
| 78 | { |
| 79 | $this->sha512sum = $sha512sum; |
| 80 | } |
| 81 | |
| 82 | public function getStatus() : string |
| 83 | { |
| 84 | return $this->status; |
| 85 | } |
| 86 | |
| 87 | public function setStatus(string $status) : void |
| 88 | { |
| 89 | $this->status = $status; |
| 90 | } |
| 91 | |
| 92 | public function getResponseName() : string |
| 93 | { |
| 94 | return 'iso'; |
| 95 | } |
| 96 | } |