Completed
Push — master ( f046fa...700b4a )
by Iman
13:17 queued 09:52
created

HeyMan   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 7
dl 0
loc 24
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A makeSure() 0 3 1
A forget() 0 3 1
A __call() 0 5 1
A checkPoint() 0 3 1
1
<?php
2
3
namespace Imanghafoori\HeyMan;
4
5
use Imanghafoori\HeyMan\MakeSure\HttpClient;
6
use Imanghafoori\HeyMan\Situations\SituationsProxy;
7
use Imanghafoori\HeyMan\Switching\Turn;
8
9
class HeyMan
10
{
11
    use Turn;
12
13 14
    public function forget(): Forget
14
    {
15 14
        return new Forget();
16
    }
17
18 104
    public function __call($method, $args)
19
    {
20 104
        resolve(Chain::class)->writeDebugInfo(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2));
21
22 104
        return  SituationsProxy::call($method, $args);
23
    }
24
25 27
    public function makeSure($app): HttpClient
26
    {
27 27
        return new HttpClient($app);
28
    }
29
30 1
    public function checkPoint($pointName)
31
    {
32 1
        event('heyman_checkpoint_'.$pointName);
33
    }
34
}
35