Completed
Pull Request — master (#15)
by Christoffer
03:18 queued 01:12
created

TypeKindEnum   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A values() 0 3 1
1
<?php
2
3
namespace Digia\GraphQL\Type;
4
5
class TypeKindEnum
6
{
7
8
    const SCALAR       = 'SCALAR';
9
    const OBJECT       = 'OBJECT';
10
    const INTERFACE    = 'INTERFACE';
11
    const UNION        = 'UNION';
12
    const ENUM         = 'ENUM';
13
    const INPUT_OBJECT = 'INPUT_OBJECT';
14
    const LIST         = 'LIST';
15
    const NON_NULL     = 'NON_NULL';
16
17
    /**
18
     * @return array
19
     * @throws \ReflectionException
20
     */
21
    public static function values(): array
22
    {
23
        return array_values((new \ReflectionClass(__CLASS__))->getConstants());
24
    }
25
}
26