Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class TransitionWasFailed extends Event implements StateEvent |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $transition; |
||
13 | |||
14 | /** |
||
15 | * @var \Throwable |
||
16 | */ |
||
17 | private $exception; |
||
18 | |||
19 | 11 | public function __construct(string $transition, \Throwable $exception) |
|
20 | { |
||
21 | 11 | $this->transition = $transition; |
|
22 | 11 | $this->exception = $exception; |
|
23 | 11 | } |
|
24 | |||
25 | public function transition(): string |
||
26 | { |
||
27 | return $this->transition; |
||
28 | } |
||
29 | |||
30 | public function exception(): \Throwable |
||
33 | } |
||
34 | } |
||
35 |