Completed
Push — master ( d3e0a6...196cd2 )
by Iman
08:32
created

HeyMan::startChain()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 3

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 3
nc 3
nop 2
crap 3
1
<?php
2
3
namespace Imanghafoori\HeyMan;
4
5
use Imanghafoori\HeyMan\Situations\SituationsProxy;
6
use Imanghafoori\HeyMan\Switching\Turn;
7
8
class HeyMan
9
{
10
    use Turn;
11
12
    public function forget(): Forget
13
    {
14
        return new Forget();
15 14
    }
16
17 14
    public function __call($method, $args)
18
    {
19
        resolve(Chain::class)->writeDebugInfo(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2));
20 103
21
        return  SituationsProxy::call($method, $args);
22 103
    }
23
}
24