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
OperatingSystem
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
 getName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getArch
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setArch
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getFamily
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setFamily
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getResponseListName
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\OperatingSystems;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds operating system information.
11 */
12class OperatingSystem extends Model
13{
14    protected int $id;
15    protected string $name;
16    protected string $arch;
17    protected string $family;
18
19    public function getId() : int
20    {
21        return $this->id;
22    }
23
24    public function setId(int $id) : void
25    {
26        $this->id = $id;
27    }
28
29    public function getName() : string
30    {
31        return $this->name;
32    }
33
34    public function setName(string $name) : void
35    {
36        $this->name = $name;
37    }
38
39    public function getArch() : string
40    {
41        return $this->arch;
42    }
43
44    public function setArch(string $arch) : void
45    {
46        $this->arch = $arch;
47    }
48
49    public function getFamily() : string
50    {
51        return $this->family;
52    }
53
54    public function setFamily(string $family) : void
55    {
56        $this->family = $family;
57    }
58
59    public function getResponseListName() : string
60    {
61        return 'os';
62    }
63}