Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class ClientRequestSecurity implements HttpRequestSecurity |
||
8 | { |
||
9 | protected string $certificate; |
||
10 | protected string $privateKey; |
||
11 | |||
12 | public function getCertificate(): string |
||
13 | { |
||
14 | return $this->certificate; |
||
15 | } |
||
16 | |||
17 | public function getPrivateKey(): string |
||
18 | { |
||
19 | return $this->privateKey; |
||
20 | } |
||
21 | |||
22 | public function hasCertificate(): bool |
||
25 | } |
||
26 | |||
27 | public function hasPrivateKey(): bool |
||
28 | { |
||
29 | return $this->privateKey ?? false; |
||
30 | } |
||
31 | |||
32 | public function setCertificate(string $certificate): self |
||
37 | } |
||
38 | |||
39 | public function setPrivateKey(string $privateKey): self |
||
40 | { |
||
46 |