RuntimeLoader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 3 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
use Twig\RuntimeLoader\RuntimeLoaderInterface;
12
13
/**
14
 * Class RuntimeLoader.
15
 */
16
class RuntimeLoader implements RuntimeLoaderInterface
17
{
18 9
    public function load($class)
19
    {
20 9
        return new $class();
21
    }
22
}
23