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

TestEnumType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValues() 0 13 1
1
<?php
2
/*
3
* This file is a part of GraphQL project.
4
*
5
* @author Alexandr Viniychuk <[email protected]>
6
* created: 5/12/16 6:42 PM
7
*/
8
9
namespace Youshido\Tests\DataProvider;
10
11
12
use Youshido\GraphQL\Type\Enum\AbstractEnumType;
13
14
class TestEnumType extends AbstractEnumType
15
{
16
    public function getValues()
17
    {
18
        return [
19
            [
20
                'name'  => 'FINISHED',
21
                'value' => 1,
22
            ],
23
            [
24
                'name'  => 'NEW',
25
                'value' => 0,
26
            ]
27
        ];
28
    }
29
30
}
31