Total Complexity | 7 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 93.33% |
Changes | 0 |
1 | <?php |
||
8 | class HeyMan |
||
9 | { |
||
10 | use Turn; |
||
11 | |||
12 | 15 | public function forget(): Forget |
|
13 | { |
||
14 | 15 | return new Forget(); |
|
15 | } |
||
16 | |||
17 | 1 | public function __call($method, $args) |
|
18 | { |
||
19 | 1 | $this->writeDebugInfo(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2)); |
|
20 | |||
21 | return $this->startChain($method, $args); |
||
22 | 13 | } |
|
23 | |||
24 | 13 | /** |
|
25 | * @return array |
||
26 | */ |
||
27 | 102 | private function situations(): array |
|
28 | { |
||
29 | 102 | return [ |
|
30 | RouteSituations::class, |
||
31 | 102 | ViewSituations::class, |
|
32 | 102 | EloquentSituations::class, |
|
33 | 102 | EventSituations::class, |
|
34 | ]; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param $d |
||
39 | */ |
||
40 | private function writeDebugInfo($d) |
||
43 | } |
||
44 | 102 | ||
45 | /** |
||
46 | * @param $method |
||
47 | * @param $args |
||
48 | * @return mixed |
||
49 | */ |
||
50 | private function startChain($method, $args) |
||
55 | } |
||
56 | 102 | } |
|
57 | 102 | } |
|
58 | } |
||
59 |