Completed
Pull Request — master (#48)
by David
01:52
created

Contact   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 23
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A __construct() 0 3 1
A getManager() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers\Fixtures\Integration\Models;
5
6
7
class Contact
8
{
9
    /**
10
     * @var string
11
     */
12
    private $name;
13
14
    public function __construct(string $name)
15
    {
16
        $this->name = $name;
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function getName(): string
23
    {
24
        return $this->name;
25
    }
26
27
    public function getManager(): ?Contact
28
    {
29
        return null;
30
    }
31
}
32