Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | final public static function exception(\Throwable $exception) |
||
36 | { |
||
37 | return new class($exception) extends Result implements Exception { |
||
38 | private $exception; |
||
39 | |||
40 | public function __construct(\Throwable $exception) |
||
41 | { |
||
42 | $this->exception = $exception; |
||
43 | } |
||
44 | |||
45 | public function inner() : \Throwable |
||
46 | { |
||
47 | return $this->exception; |
||
48 | } |
||
49 | }; |
||
50 | } |
||
51 | } |
||
52 |