Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
14 / 14 |
|
100.00% |
14 / 14 |
CRAP | |
100.00% |
1 / 1 |
| Application | |
100.00% |
14 / 14 |
|
100.00% |
14 / 14 |
14 | |
100.00% |
1 / 1 |
| getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getShortName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setShortName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getDeployName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setDeployName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getVendor | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setVendor | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getImageId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setImageId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Vultr\VultrPhp\Services\Applications; |
| 6 | |
| 7 | use Vultr\VultrPhp\Util\Model; |
| 8 | |
| 9 | /** |
| 10 | * Holds deployable application image info that can be used on virtualmachine's and baremetal's. |
| 11 | */ |
| 12 | class Application extends Model |
| 13 | { |
| 14 | protected int $id; |
| 15 | protected string $name; |
| 16 | protected string $shortName; |
| 17 | protected string $deployName; |
| 18 | protected string $type; |
| 19 | protected string $vendor; |
| 20 | protected string $imageId; |
| 21 | |
| 22 | public function getId() : int |
| 23 | { |
| 24 | return $this->id; |
| 25 | } |
| 26 | |
| 27 | public function setId(int $id) : void |
| 28 | { |
| 29 | $this->id = $id; |
| 30 | } |
| 31 | |
| 32 | public function getName() : string |
| 33 | { |
| 34 | return $this->name; |
| 35 | } |
| 36 | |
| 37 | public function setName(string $name) : void |
| 38 | { |
| 39 | $this->name = $name; |
| 40 | } |
| 41 | |
| 42 | public function getShortName() : string |
| 43 | { |
| 44 | return $this->shortName; |
| 45 | } |
| 46 | |
| 47 | public function setShortName(string $short_name) : void |
| 48 | { |
| 49 | $this->shortName = $short_name; |
| 50 | } |
| 51 | |
| 52 | public function getDeployName() : string |
| 53 | { |
| 54 | return $this->deployName; |
| 55 | } |
| 56 | |
| 57 | public function setDeployName(string $deploy_name) : void |
| 58 | { |
| 59 | $this->deployName = $deploy_name; |
| 60 | } |
| 61 | |
| 62 | public function getType() : string |
| 63 | { |
| 64 | return $this->type; |
| 65 | } |
| 66 | |
| 67 | public function setType(string $type) : void |
| 68 | { |
| 69 | $this->type = $type; |
| 70 | } |
| 71 | |
| 72 | public function getVendor() : string |
| 73 | { |
| 74 | return $this->vendor; |
| 75 | } |
| 76 | |
| 77 | public function setVendor(string $vendor) : void |
| 78 | { |
| 79 | $this->vendor = $vendor; |
| 80 | } |
| 81 | |
| 82 | public function getImageId() : string |
| 83 | { |
| 84 | return $this->imageId; |
| 85 | } |
| 86 | |
| 87 | public function setImageId(string $image_id) : void |
| 88 | { |
| 89 | $this->imageId = $image_id; |
| 90 | } |
| 91 | } |