Completed
Push — master ( 57fb58...67c655 )
by Restu
13:18
created

functions.php ➔ templateEngine()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 3
dl 0
loc 4
rs 10
1
<?php
2
namespace JayaCode\Framework\Core\View;
3
4
use JayaCode\Framework\Core\Route\Collector\RegexRouteCollector;
5
use JayaCode\Framework\Core\Route\Dispatcher\Dispatcher;
6
use JayaCode\Framework\Core\Route\Dispatcher\RegexDispatcher;
7
use JayaCode\Framework\Core\View\View;
8
9
if (!function_exists('JayaCode\Framework\Core\View\templateEngine')) {
10
11
    /**
12
     * @param $viewDir
13
     * @param array $globalVariable
14
     * @param array $options
15
     * @return View
16
     */
17
    function templateEngine($viewDir, $globalVariable = [], $options = [])
18
    {
19
        return new View($viewDir, $globalVariable, $options);
20
    }
21
}
22