Completed
Push — master ( b526e9...87ea4e )
by Giancarlos
03:25
created

RuntimeLoader::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Administrador
5
 * Date: 20/01/2018
6
 * Time: 01:36 PM.
7
 */
8
9
namespace Greenter\Report\Extension;
10
11
/**
12
 * Class RuntimeLoader.
13
 */
14
class RuntimeLoader implements \Twig_RuntimeLoaderInterface
15
{
16 2
    public function load($class)
17
    {
18 2
        return new $class();
19
    }
20
}
21