Completed
Pull Request — master (#15)
by Christoffer
02:04
created

TypeKindEnum::values()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
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