Completed
Pull Request — master (#47)
by David
03:13
created

Contact   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A __construct() 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
}