Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
10 / 10 |
|
100.00% |
10 / 10 |
CRAP | |
100.00% |
1 / 1 |
LBInfo | |
100.00% |
10 / 10 |
|
100.00% |
10 / 10 |
10 | |
100.00% |
1 / 1 |
getBalancingAlgorithm | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setBalancingAlgorithm | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getSslRedirect | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setSslRedirect | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getStickySessions | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setStickySessions | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getProxyProtocol | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setProxyProtocol | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getVpc | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setVpc | |
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 load balanacer information, that balances the traffic. |
11 | */ |
12 | class LBInfo extends Model |
13 | { |
14 | protected string $balancingAlgorithm; |
15 | protected bool $sslRedirect; |
16 | protected StickySession $stickySessions; |
17 | protected bool $proxyProtocol; |
18 | protected string $vpc; |
19 | |
20 | public function getBalancingAlgorithm() : string |
21 | { |
22 | return $this->balancingAlgorithm; |
23 | } |
24 | |
25 | public function setBalancingAlgorithm(string $balancing_algorithm) : void |
26 | { |
27 | $this->balancingAlgorithm = $balancing_algorithm; |
28 | } |
29 | |
30 | public function getSslRedirect() : bool |
31 | { |
32 | return $this->sslRedirect; |
33 | } |
34 | |
35 | public function setSslRedirect(bool $ssl_redirect) : void |
36 | { |
37 | $this->sslRedirect = $ssl_redirect; |
38 | } |
39 | |
40 | public function getStickySessions() : StickySession |
41 | { |
42 | return $this->stickySessions; |
43 | } |
44 | |
45 | public function setStickySessions(StickySession $sticky_sessions) : void |
46 | { |
47 | $this->stickySessions = $sticky_sessions; |
48 | } |
49 | |
50 | public function getProxyProtocol() : bool |
51 | { |
52 | return $this->proxyProtocol; |
53 | } |
54 | |
55 | public function setProxyProtocol(bool $proxy_protocol) : void |
56 | { |
57 | $this->proxyProtocol = $proxy_protocol; |
58 | } |
59 | |
60 | public function getVpc() : string |
61 | { |
62 | return $this->vpc; |
63 | } |
64 | |
65 | public function setVpc(string $vpc) : void |
66 | { |
67 | $this->vpc = $vpc; |
68 | } |
69 | } |