Completed
Push — master ( b0b79e...9ac4d8 )
by Hans
18s
created

ValueEnum::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
3
namespace HansOtt\GraphQL\Schema;
4
5
final class ValueEnum extends NodeBase implements Value
6
{
7
    public $value;
8
9
    /**
10
     * @param string $value
11
     * @param Location|null $location
12
     */
13
    public function __construct($value, Location $location = null)
14
    {
15
        parent::__construct($location);
16
        $this->value = (string) $value;
17
    }
18
}
19