Passed
Push — master ( a24468...7248a5 )
by Iman
02:17
created

ViewEventManager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A startWatching() 0 3 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\WatchingStrategies\Views;
4
5
class ViewEventManager
6
{
7
    /**
8
     * @param string $view
9
     * @param array  $callback
10
     */
11 15
    public function startWatching(string $view, array $callback)
12
    {
13 15
        view()->creator($view, $callback[0]);
14 15
    }
15
}
16