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

ViewEventManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 40%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
ccs 2
cts 5
cp 0.4
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A forgetAboutAll() 0 3 1
A register() 0 3 1
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