GeneratorClassFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: thalesmartins
5
 * Date: 10/12/2018
6
 * Time: 14:41
7
 */
8
9
namespace Saci\Console\Infrastructure\Domain\Services;
10
11
12
use cristianoc72\codegen\generator\CodeGenerator;
13
14
class GeneratorClassFactory
15
{
16 5
    public static function create()
17
    {
18 5
        return new GeneratorClass(new CodeGenerator([
19 5
            'generateScalarTypeHints' => true,
20
            'generateReturnTypeHints' => true
21
        ]));
22
    }
23
}