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

User   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

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