| Total Complexity | 5 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class Snapshot implements SnapshotInterface |
||
| 18 | { |
||
| 19 | /** @var string */ |
||
| 20 | private $id; |
||
| 21 | |||
| 22 | /** @var \Throwable */ |
||
| 23 | private $exception; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $id |
||
| 27 | * @param \Throwable $exception |
||
| 28 | */ |
||
| 29 | public function __construct(string $id, \Throwable $exception) |
||
| 30 | { |
||
| 31 | $this->id = $id; |
||
| 32 | $this->exception = $exception; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | public function getID(): string |
||
| 39 | { |
||
| 40 | return $this->id; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @inheritdoc |
||
| 45 | */ |
||
| 46 | public function getException(): \Throwable |
||
| 47 | { |
||
| 48 | return $this->exception; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritdoc |
||
| 53 | */ |
||
| 54 | public function getMessage(): string |
||
| 62 | ); |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @inheritdoc |
||
| 67 | */ |
||
| 68 | public function describe(): array |
||
| 80 |