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

HeyMan::checkPoint()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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