Completed
Pull Request — master (#204)
by Ryan
11:34
created

EpisodeEnum   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 32
rs 10
1
<?php
2
/**
3
 * Copyright (c) 2015–2018 Alexandr Viniychuk <http://youshido.com>.
4
 * Copyright (c) 2015–2018 Portey Vasil <https://github.com/portey>.
5
 * Copyright (c) 2018 Ryan Parman <https://github.com/skyzyx>.
6
 * Copyright (c) 2018 Ashley Hutson <https://github.com/asheliahut>.
7
 * Copyright (c) 2015–2018 Contributors.
8
 *
9
 * http://opensource.org/licenses/MIT
10
 */
11
12
declare(strict_types=1);
13
/**
14
 * Date: 07.12.15.
15
 */
16
17
namespace Youshido\Tests\StarWars\Schema;
18
19
use Youshido\GraphQL\Type\Enum\AbstractEnumType;
20
21
class EpisodeEnum extends AbstractEnumType
22
{
23
    public function getValues()
24
    {
25
        return [
26
            [
27
                'value'       => 4,
28
                'name'        => 'NEWHOPE',
29
                'description' => 'Released in 1977.',
30
            ],
31
            [
32
                'value'       => 5,
33
                'name'        => 'EMPIRE',
34
                'description' => 'Released in 1980.',
35
            ],
36
            [
37
                'value'       => 6,
38
                'name'        => 'JEDI',
39
                'description' => 'Released in 1983.',
40
            ],
41
        ];
42
    }
43
44
    /**
45
     * @return string type name
46
     */
47
    public function getName()
48
    {
49
        return 'Episode';
50
    }
51
}
52