Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
9 / 9
CRAP
100.00% covered (success)
100.00%
1 / 1
Node
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
9 / 9
9
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
 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
 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
 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
 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 information.
11 */
12class Node extends Model
13{
14    protected string $id;
15    protected string $label;
16    protected string $dateCreated;
17    protected string $status;
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 getLabel() : string
30    {
31        return $this->label;
32    }
33
34    public function setLabel(string $label) : void
35    {
36        $this->label = $label;
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 getStatus() : string
50    {
51        return $this->status;
52    }
53
54    public function setStatus(string $status) : void
55    {
56        $this->status = $status;
57    }
58
59    public function getModelExceptionClass() : string
60    {
61        return str_replace('NodeException', 'KubernetesException', parent::getModelExceptionClass());
62    }
63}