Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
UnsealAggregateException | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
addException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getExceptions | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace Fingerprint\ServerAPI\Sealed; |
4 | |
5 | class UnsealAggregateException extends \Exception |
6 | { |
7 | /** |
8 | * @var \Exception[] |
9 | */ |
10 | private $exceptions; |
11 | |
12 | public function __construct() |
13 | { |
14 | parent::__construct('Failed to unseal with all decryption keys'); |
15 | } |
16 | |
17 | public function addException(\Exception $exception) |
18 | { |
19 | $this->exceptions[] = $exception; |
20 | } |
21 | |
22 | public function getExceptions() |
23 | { |
24 | return $this->exceptions; |
25 | } |
26 | } |