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

ViewEventManager::start()   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
cc 3
eloc 3
nc 3
nop 0
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 3
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