Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class WeThrowException extends BaseReaction |
||
10 | { |
||
11 | 4 | public function weThrowNew(string $exception, string $message = null) |
|
12 | { |
||
13 | 4 | $this->commit(func_get_args(), [static::class, 'exception']); |
|
14 | |||
15 | 4 | return new Then($this); |
|
16 | } |
||
17 | |||
18 | 85 | public function weDenyAccess(string $message = null) |
|
23 | } |
||
24 | |||
25 | public static function exception(array $e) |
||
35 |