Completed
Push — master ( 196cd2...29d79e )
by Iman
15:10 queued 11:41
created

HeyMan   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A forget() 0 3 1
A __call() 0 5 1
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 14
    public function forget(): Forget
13
    {
14 14
        return new Forget();
15
    }
16
17 103
    public function __call($method, $args)
18
    {
19 103
        resolve(Chain::class)->writeDebugInfo(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2));
20
21 103
        return  SituationsProxy::call($method, $args);
22
    }
23
}
24