Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.072 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 8 | public function __construct(X509Certificate ...$certificates) |
|
16 | { |
||
17 | 8 | foreach ($certificates as $c) { |
|
18 | 8 | if (!($c instanceof X509Certificate)) { |
|
19 | throw new InvalidArgumentException(sprintf('Expecting array of X509Certificate objects.')); |
||
20 | } |
||
21 | } |
||
22 | 8 | $this->certificates = $certificates; |
|
23 | 8 | } |
|
59 |