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