Passed
Push — master ( 12242c...e9b436 )
by Iman
08:01
created

ViewEventManager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

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