Completed
Pull Request — master (#47)
by David
01:40
created

User::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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