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

EnumType::getValues()   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 3
Bugs 2 Features 1
Metric Value
c 3
b 2
f 1
dl 0
loc 4
rs 10
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 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