Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 3 | ||
Bugs | 0 | Features | 3 |
1 | <?php |
||
24 | 7 | public function __construct($certificate, SanParser $sanParser = null) |
|
25 | { |
||
26 | 7 | if ($sanParser === null) { |
|
27 | 7 | $sanParser = new SanParser(); |
|
28 | 7 | } |
|
29 | |||
30 | 7 | $this->sanParser = $sanParser; |
|
31 | |||
32 | 7 | $this->rawCert = $certificate; |
|
33 | 7 | $this->certData = openssl_x509_parse($this->rawCert); |
|
34 | 7 | $this->sanParser = $sanParser; |
|
35 | 7 | } |
|
36 | |||
105 |