Test Failed
Push — master ( a77613...80fd82 )
by Kirill
02:23
created

DirectiveLocationEnum::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * This file is part of Railt package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
declare(strict_types=1);
9
10
namespace Railt\Reflection\Introspection\Enum;
11
12
use Railt\Reflection\Definition\EnumDefinition;
13
use Railt\Reflection\Document;
14
15
/**
16
 * Class DirectiveLocationEnum
17
 */
18
class DirectiveLocationEnum extends EnumDefinition
19
{
20
    /**
21
     * @var string
22
     */
23
    public const TYPE_NAME = '__DirectiveLocation';
24
25
    /**
26
     * @var string
27
     */
28
    public const TYPE_DESCRIPTION = 'A Directive can be adjacent to many parts of the GraphQL language,
29
a __DirectiveLocation describes one such possible adjacencies.';
30
31
    /**
32
     * @var int
33
     */
34
    public const TYPE_LINE = 149;
35
36
    /**
37
     * SchemaObject constructor.
38
     * @param Document $document
39
     */
40
    public function __construct(Document $document)
41
    {
42
        parent::__construct($document, static::TYPE_NAME);
43
44
        $this->withDescription(self::TYPE_DESCRIPTION);
45
        $this->withLine(self::TYPE_LINE);
46
    }
47
}
48