Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
6 / 6 |
|
100.00% |
6 / 6 |
CRAP | |
100.00% |
1 / 1 |
| SSL | |
100.00% |
6 / 6 |
|
100.00% |
6 / 6 |
6 | |
100.00% |
1 / 1 |
| getPrivateKey | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setPrivateKey | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getCertificate | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setCertificate | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getChain | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setChain | |
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 SSL information that is used to generate a request to the api. |
| 11 | */ |
| 12 | class SSL extends Model |
| 13 | { |
| 14 | protected string $privateKey; |
| 15 | protected string $certificate; |
| 16 | protected string $chain; |
| 17 | |
| 18 | public function getPrivateKey() : string |
| 19 | { |
| 20 | return $this->privateKey; |
| 21 | } |
| 22 | |
| 23 | public function setPrivateKey(string $private_key) : void |
| 24 | { |
| 25 | $this->privateKey = $private_key; |
| 26 | } |
| 27 | |
| 28 | public function getCertificate() : string |
| 29 | { |
| 30 | return $this->certificate; |
| 31 | } |
| 32 | |
| 33 | public function setCertificate(string $certificate) : void |
| 34 | { |
| 35 | $this->certificate = $certificate; |
| 36 | } |
| 37 | |
| 38 | public function getChain() : string |
| 39 | { |
| 40 | return $this->chain; |
| 41 | } |
| 42 | |
| 43 | public function setChain(string $chain) : void |
| 44 | { |
| 45 | $this->chain = $chain; |
| 46 | } |
| 47 | } |