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

RuntimeLoader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 4 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