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

EnumValueObject   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 31
ccs 0
cts 6
cp 0
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\Object;
11
12
use Railt\Reflection\Definition\ObjectDefinition;
13
use Railt\Reflection\Document;
14
15
/**
16
 * Class EnumValueObject
17
 */
18
class EnumValueObject extends ObjectDefinition
19
{
20
    /**
21
     * @var string
22
     */
23
    public const TYPE_NAME = '__EnumValue';
24
25
    /**
26
     * @var string
27
     */
28
    public const TYPE_DESCRIPTION = 'One possible value for a given Enum. Enum values are unique values,
29
not a placeholder for a string or numeric value. However an Enum
30
value is returned in a JSON response as a string.';
31
32
    /**
33
     * @var int
34
     */
35
    public const TYPE_LINE = 83;
36
37
    /**
38
     * SchemaObject constructor.
39
     * @param Document $document
40
     */
41
    public function __construct(Document $document)
42
    {
43
        parent::__construct($document, static::TYPE_NAME);
44
45
        $this->withDescription(self::TYPE_DESCRIPTION);
46
        $this->withLine(self::TYPE_LINE);
47
    }
48
}
49