Completed
Push — master ( e8da74...847a65 )
by Iman
10:06 queued 06:57
created

ViewEventManager::commitChain()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 0
loc 6
ccs 5
cts 5
cp 1
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Imanghafoori\HeyMan\WatchingStrategies;
4
5
class ViewEventManager extends BaseManager
6
{
7
    protected $type = 'view';
8
9
    public function forgetAboutAll()
10
    {
11
        $this->data = [];
12
    }
13
14 15
    public function register($view, $callback)
15
    {
16 15
        view()->creator($view, $callback[0]);
17 15
    }
18
}
19