User::getEmail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of datamolino client.
5
 *
6
 * (c) 2018 cwd.at GmbH <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Cwd\Datamolino\Model;
15
16
class User
17
{
18
    /** @var int */
19
    private $id;
20
21
    /** @var string */
22
    private $email;
23
24
    /** @var string */
25
    private $name;
26
27
    /** @var string */
28
    private $surname;
29
30
    /**
31
     * @return int
32
     */
33
    public function getId(): int
34
    {
35
        return $this->id;
36
    }
37
38
    /**
39
     * @param int $id
40
     *
41
     * @return User
42
     */
43
    public function setId(int $id): User
44
    {
45
        $this->id = $id;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getEmail(): string
54
    {
55
        return $this->email;
56
    }
57
58
    /**
59
     * @param string $email
60
     *
61
     * @return User
62
     */
63
    public function setEmail(string $email): User
64
    {
65
        $this->email = $email;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getName(): string
74
    {
75
        return $this->name;
76
    }
77
78
    /**
79
     * @param string $name
80
     *
81
     * @return User
82
     */
83
    public function setName(string $name): User
84
    {
85
        $this->name = $name;
86
87
        return $this;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function getSurname(): string
94
    {
95
        return $this->surname;
96
    }
97
98
    /**
99
     * @param string $surname
100
     *
101
     * @return User
102
     */
103
    public function setSurname(string $surname): User
104
    {
105
        $this->surname = $surname;
106
107
        return $this;
108
    }
109
}
110