Completed
Push — master ( f8702a...461e07 )
by Alexandr
04:08
created

PostStatus   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
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
 * PostStatus.php
4
 */
5
6
namespace Examples\Blog\Schema;
7
8
9
use Youshido\GraphQL\Type\Object\AbstractEnumType;
10
11
class PostStatus extends AbstractEnumType
12
{
13
    public function getValues()
14
    {
15
        return [
16
            [
17
                'value' => 0,
18
                'name'  => 'DRAFT',
19
            ],
20
            [
21
                'value' => 1,
22
                'name'  => 'PUBLISHED',
23
            ]
24
        ];
25
    }
26
27
}
28