Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
10 / 10
CRAP
100.00% covered (success)
100.00%
1 / 1
Region
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
10 / 10
10
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
 getCity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getCountry
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCountry
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getContinent
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setContinent
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getOptions
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setOptions
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\Regions;
6
7use Vultr\VultrPhp\Util\Model;
8
9/**
10 * Holds region specific information.
11 */
12class Region extends Model
13{
14    protected string $id;
15    protected string $city;
16    protected string $country;
17    protected string $continent;
18    protected array $options;
19
20    public function getId() : string
21    {
22        return $this->id;
23    }
24
25    public function setId(string $id) : void
26    {
27        $this->id = $id;
28    }
29
30    public function getCity()  : string
31    {
32        return $this->city;
33    }
34
35    public function setCity(string $city) : void
36    {
37        $this->city = $city;
38    }
39
40    public function getCountry() : string
41    {
42        return $this->country;
43    }
44
45    public function setCountry(string $country) : void
46    {
47        $this->country = $country;
48    }
49
50    public function getContinent() : string
51    {
52        return $this->continent;
53    }
54
55    public function setContinent(string $continent) : void
56    {
57        $this->continent = $continent;
58    }
59
60    public function getOptions() : array
61    {
62        return $this->options;
63    }
64
65    public function setOptions(array $options) : void
66    {
67        $this->options = $options;
68    }
69}