Completed
Pull Request — master (#53)
by David
01:55
created

TestObject   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 8
dl 0
loc 36
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getTest() 0 3 1
A __construct() 0 4 1
A isTestBool() 0 3 1
A testRight() 0 3 1
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 testRight(): string
40
    {
41
        return "foo";
42
    }
43
}
44