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

ValueBoolean   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
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 10
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace HansOtt\GraphQL\Schema;
4
5
final class ValueBoolean extends NodeBase implements ValueScalar
6
{
7
    private $isTrue;
8
9 3
    public function __construct($isTrue, Location $location = null)
10
    {
11 3
        parent::__construct($location);
12 3
        $this->isTrue = (bool) $isTrue;
13 3
    }
14
}
15