Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
10 / 10 |
|
100.00% |
10 / 10 |
CRAP | |
100.00% |
1 / 1 |
SSHKey | |
100.00% |
10 / 10 |
|
100.00% |
10 / 10 |
10 | |
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 | |||
getName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getSshKey | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setSshKey | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getResponseName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getUpdateParams | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Vultr\VultrPhp\Services\SSHKeys; |
6 | |
7 | use Vultr\VultrPhp\Util\Model; |
8 | |
9 | /** |
10 | * Holds ssh key information. |
11 | */ |
12 | class SSHKey extends Model |
13 | { |
14 | protected string $id; |
15 | protected string $dateCreated; |
16 | protected string $name; |
17 | protected string $sshKey; |
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 getDateCreated() : string |
30 | { |
31 | return $this->dateCreated; |
32 | } |
33 | |
34 | public function setDateCreated(string $date_created) : void |
35 | { |
36 | $this->dateCreated = $date_created; |
37 | } |
38 | |
39 | public function getName() : string |
40 | { |
41 | return $this->name; |
42 | } |
43 | |
44 | public function setName(string $name) : void |
45 | { |
46 | $this->name = $name; |
47 | } |
48 | |
49 | public function getSshKey() : string |
50 | { |
51 | return $this->sshKey; |
52 | } |
53 | |
54 | public function setSshKey(string $ssh_key) : void |
55 | { |
56 | $this->sshKey = $ssh_key; |
57 | } |
58 | |
59 | public function getResponseName() : string |
60 | { |
61 | return 'ssh_key'; |
62 | } |
63 | |
64 | public function getUpdateParams() : array |
65 | { |
66 | return ['name', 'ssh_key']; |
67 | } |
68 | } |