Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
28.57% |
2 / 7 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
UnsealException | |
28.57% |
2 / 7 |
|
50.00% |
1 / 2 |
3.46 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
__toString | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Fingerprint\ServerAPI\Sealed; |
4 | |
5 | class UnsealException extends \Exception |
6 | { |
7 | public $decryptionKeyDescription; |
8 | |
9 | public function __construct($message, $cause, $decryptionKey) |
10 | { |
11 | parent::__construct($message, 0, $cause); |
12 | $this->decryptionKeyDescription = $decryptionKey; |
13 | } |
14 | |
15 | public function __toString() |
16 | { |
17 | return 'UnsealException{'. |
18 | 'decryptionKey='.$this->decryptionKeyDescription. |
19 | ', message='.$this->getMessage(). |
20 | ', cause='.$this->getPrevious(). |
21 | '}'; |
22 | } |
23 | } |