| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class SecureOptions |
||
| 6 | { |
||
| 7 | /** @var CertificatePath */ |
||
| 8 | private $certificate; |
||
| 9 | /** @var CertificateKeyPath */ |
||
| 10 | private $certificateKey; |
||
| 11 | /** @var Passphrase */ |
||
| 12 | private $passphrase; |
||
| 13 | |||
| 14 | public function __construct(CertificatePath $cert, CertificateKeyPath $certKey, ?Passphrase $pass) |
||
| 15 | { |
||
| 16 | $this->certificate = $cert; |
||
| 17 | $this->passphrase = $pass; |
||
| 18 | $this->certificateKey = $certKey; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getCertificate(): CertificatePath |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getCertificateKey(): CertificateKeyPath |
||
| 29 | } |
||
| 30 | |||
| 31 | public function hasPassphrase(): bool |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getPassphrase(): Passphrase |
||
| 39 | } |
||
| 40 | } |
||
| 41 |