Total Complexity | 9 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 86.96% |
Changes | 0 |
1 | <?php |
||
7 | class Actions |
||
8 | { |
||
9 | public $response = []; |
||
10 | |||
11 | public $redirect = []; |
||
12 | |||
13 | public $exception; |
||
14 | |||
15 | 2 | public function response() |
|
16 | { |
||
17 | 2 | return new Responder($this); |
|
18 | } |
||
19 | |||
20 | 3 | public function redirect() |
|
21 | { |
||
22 | 3 | return new Redirector($this); |
|
23 | } |
||
24 | |||
25 | 1 | public function afterCalling($callback, array $parameters = []) |
|
26 | { |
||
27 | 1 | app()->call($callback, $parameters); |
|
28 | |||
29 | 1 | return $this; |
|
30 | } |
||
31 | |||
32 | 1 | public function weThrowNew($exception, $message = '') |
|
35 | 1 | } |
|
36 | |||
37 | 1 | public function abort($code, $message = '', array $headers = []) |
|
43 | } |
||
44 | 1 | } |
|
45 | |||
46 | 51 | public function weDenyAccess($msg = '') |
|
47 | { |
||
48 | 51 | $this->exception = new AuthorizationException($msg); |
|
49 | 51 | } |
|
50 | |||
51 | |||
52 | public function afterFiringEvent(...$args) |
||
57 | } |
||
58 | |||
59 | 56 | public function __destruct() |
|
60 | { |
||
62 | 56 | } |
|
63 | |||
64 | } |