Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
23 / 23
100.00% covered (success)
100.00%
23 / 23
CRAP
100.00% covered (success)
100.00%
1 / 1
NodePool
100.00% covered (success)
100.00%
23 / 23
100.00% covered (success)
100.00%
23 / 23
23
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
 getDateUpdated
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDateUpdated
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
 getPlan
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setPlan
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
 getNodeQuantity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setNodeQuantity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMinNodes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMinNodes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMaxNodes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMaxNodes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getAutoScaler
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setAutoScaler
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getNodes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setNodes
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\Kubernetes;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds node pool information.
11 */
12class NodePool extends Model
13{
14    protected string $id;
15    protected string $dateCreated;
16    protected string $dateUpdated;
17    protected string $label;
18    //protected string $tag; Doesn't exist, in the actual response.
19    protected string $plan;
20    protected string $status;
21    protected int $nodeQuantity;
22    protected int $minNodes;
23    protected int $maxNodes;
24    protected bool $autoScaler;
25
26    /** @var Node[] */
27    protected array $nodes;
28
29    public function getId() : string
30    {
31        return $this->id;
32    }
33
34    public function setId(string $id) : void
35    {
36        $this->id = $id;
37    }
38
39    public function getDateCreated() : string
40    {
41        return $this->dateCreated;
42    }
43
44    public function setDateCreated(string $dateCreated) : void
45    {
46        $this->dateCreated = $dateCreated;
47    }
48
49    public function getDateUpdated() : string
50    {
51        return $this->dateUpdated;
52    }
53
54    public function setDateUpdated(string $dateUpdated) : void
55    {
56        $this->dateUpdated = $dateUpdated;
57    }
58
59    public function getLabel() : string
60    {
61        return $this->label;
62    }
63
64    public function setLabel(string $label) : void
65    {
66        $this->label = $label;
67    }
68
69    public function getPlan() : string
70    {
71        return $this->plan;
72    }
73
74    public function setPlan(string $plan) : void
75    {
76        $this->plan = $plan;
77    }
78
79    public function getStatus() : string
80    {
81        return $this->status;
82    }
83
84    public function setStatus(string $status) : void
85    {
86        $this->status = $status;
87    }
88
89    public function getNodeQuantity() : int
90    {
91        return $this->nodeQuantity;
92    }
93
94    public function setNodeQuantity(int $nodeQuantity) : void
95    {
96        $this->nodeQuantity = $nodeQuantity;
97    }
98
99    public function getMinNodes() : int
100    {
101        return $this->minNodes;
102    }
103
104    public function setMinNodes(int $minNodes) : void
105    {
106        $this->minNodes = $minNodes;
107    }
108
109    public function getMaxNodes() : int
110    {
111        return $this->maxNodes;
112    }
113
114    public function setMaxNodes(int $maxNodes) : void
115    {
116        $this->maxNodes = $maxNodes;
117    }
118
119    public function getAutoScaler() : bool
120    {
121        return $this->autoScaler;
122    }
123
124    public function setAutoScaler(bool $autoScaler) : void
125    {
126        $this->autoScaler = $autoScaler;
127    }
128
129    public function getNodes() : array
130    {
131        return $this->nodes;
132    }
133
134    public function setNodes(array $nodes) : void
135    {
136        $this->nodes = $nodes;
137    }
138
139    public function getModelExceptionClass() : string
140    {
141        return str_replace('NodePoolException', 'KubernetesException', parent::getModelExceptionClass());
142    }
143}
144