Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
UnsealAggregateException
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 addException
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getExceptions
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Fingerprint\ServerSdk\Sealed;
4
5class UnsealAggregateException extends \Exception
6{
7    /**
8     * @var \Exception[]
9     */
10    private array $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): void
18    {
19        $this->exceptions[] = $exception;
20    }
21
22    public function getExceptions(): array
23    {
24        return $this->exceptions;
25    }
26}