EpisodeEnum   A
last analyzed

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValues() 0 20 1
A getName() 0 4 1
1
<?php
2
/**
3
 * Date: 07.12.15
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\Tests\StarWars\Schema;
9
10
11
use Youshido\GraphQL\Type\Enum\AbstractEnumType;
12
13
class EpisodeEnum extends AbstractEnumType
14
{
15
16
    public function getValues()
17
    {
18
        return [
19
            [
20
                'value'       => 4,
21
                'name'        => 'NEWHOPE',
22
                'description' => 'Released in 1977.'
23
            ],
24
            [
25
                'value'       => 5,
26
                'name'        => 'EMPIRE',
27
                'description' => 'Released in 1980.'
28
            ],
29
            [
30
                'value'       => 6,
31
                'name'        => 'JEDI',
32
                'description' => 'Released in 1983.'
33
            ],
34
        ];
35
    }
36
37
    /**
38
     * @return String type name
39
     */
40
    public function getName()
41
    {
42
        return 'Episode';
43
    }
44
}