Completed
Push — master ( d52ee7...e7842c )
by Alexandr
03:54
created

EnumType   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 3 Features 1
Metric Value
wmc 2
c 4
b 3
f 1
lcom 0
cbo 2
dl 0
loc 14
rs 10
ccs 5
cts 5
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValues() 0 4 1
1
<?php
2
/**
3
 * Date: 07.12.15
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\GraphQL\Type\Enum;
9
10
use Youshido\GraphQL\Config\Object\EnumTypeConfig;
11
12
final class EnumType extends AbstractEnumType
13
{
14
15 8
    public function __construct(array $config)
16
    {
17 8
        $this->config = new EnumTypeConfig($config, $this, true);
18 2
    }
19
20 2
    public function getValues()
21
    {
22 2
        return $this->getConfig()->getValues();
23
    }
24
25
}
26