Completed
Push — master ( 9f22d1...f046fa )
by Iman
06:44
created

HeyMan::checkPoint()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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 103
    public function __call($method, $args)
19
    {
20 103
        resolve(Chain::class)->writeDebugInfo(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2));
21
22 103
        return  SituationsProxy::call($method, $args);
23
    }
24
25 26
    public function makeSure($app): HttpClient
26
    {
27 26
        return new HttpClient($app);
28
    }
29
30
    public function checkPoint($pointName)
31
    {
32
        event('heyman_checkpoint_'.$pointName);
33
    }
34
}
35