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

Contact::__construct()   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
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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