Completed
Pull Request — master (#24)
by David
01:56
created

TestObject::isTestBool()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers\Fixtures;
5
6
class TestObject
7
{
8
    /**
9
     * @var string
10
     */
11
    private $test;
12
    /**
13
     * @var bool
14
     */
15
    private $testBool;
16
17
    public function __construct(string $test, bool $testBool = false)
18
    {
19
        $this->test = $test;
20
        $this->testBool = $testBool;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getTest(): string
27
    {
28
        return $this->test;
29
    }
30
31
    /**
32
     * @return bool
33
     */
34
    public function isTestBool(): bool
35
    {
36
        return $this->testBool;
37
    }
38
39
    public function getTestRight(): string
40
    {
41
        return "foo";
42
    }
43
}
44