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

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