Passed
Push — master ( 0971b0...b7d7cf )
by Kirill
03:21
created

TypeKindEnum   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 29
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
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 TypeKindEnum
17
 */
18
class TypeKindEnum extends EnumDefinition
19
{
20
    /**
21
     * @var string
22
     */
23
    public const TYPE_NAME = '__TypeKind';
24
25
    /**
26
     * @var string
27
     */
28
    public const TYPE_DESCRIPTION = 'An enum describing what kind of type a given __Type is.';
29
30
    /**
31
     * @var int
32
     */
33
    public const TYPE_LINE = 94;
34
35
    /**
36
     * SchemaObject constructor.
37
     * @param Document $document
38
     */
39 9
    public function __construct(Document $document)
40
    {
41 9
        parent::__construct($document, static::TYPE_NAME);
42
43 9
        $this->withDescription(self::TYPE_DESCRIPTION);
44 9
        $this->withLine(self::TYPE_LINE);
45 9
    }
46
}
47