Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
8 / 8 |
|
100.00% |
8 / 8 |
CRAP | |
100.00% |
1 / 1 |
FirewallRule | |
100.00% |
8 / 8 |
|
100.00% |
8 / 8 |
8 | |
100.00% |
1 / 1 |
getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getPort | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setPort | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getSource | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setSource | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getIpType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setIpType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Vultr\VultrPhp\Services\LoadBalancers; |
6 | |
7 | use Vultr\VultrPhp\Util\Model; |
8 | |
9 | /** |
10 | * Holds firewall rule information. |
11 | */ |
12 | class FirewallRule extends Model |
13 | { |
14 | protected string $id; |
15 | protected int $port; |
16 | protected string $source; |
17 | protected string $ipType; |
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 getPort() : int |
30 | { |
31 | return $this->port; |
32 | } |
33 | |
34 | public function setPort(int $port) : void |
35 | { |
36 | $this->port = $port; |
37 | } |
38 | |
39 | public function getSource() : string |
40 | { |
41 | return $this->source; |
42 | } |
43 | |
44 | public function setSource(string $source) : void |
45 | { |
46 | $this->source = $source; |
47 | } |
48 | |
49 | public function getIpType() : string |
50 | { |
51 | return $this->ipType; |
52 | } |
53 | |
54 | public function setIpType(string $ip_type) : void |
55 | { |
56 | $this->ipType = $ip_type; |
57 | } |
58 | } |