User::setEmail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace SlayerBirden\DataFlowServer\Domain\Entities;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity @ORM\Table(name="users")
10
 **/
11
class User
12
{
13
    /**
14
     * @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue
15
     * @var integer|null
16
     **/
17
    private $id;
18
    /**
19
     * @ORM\Column(type="string")
20
     * @var string
21
     **/
22
    private $first;
23
    /**
24
     * @ORM\Column(type="string")
25
     * @var string
26
     **/
27
    private $last;
28
    /**
29
     * @ORM\Column(type="string", unique=true)
30
     * @var string
31
     **/
32
    private $email;
33
34
    /**
35
     * @return int|null
36
     */
37 80
    public function getId(): ?int
38
    {
39 80
        return $this->id;
40
    }
41
42
    /**
43
     * @return string
44
     */
45 76
    public function getFirst(): string
46
    {
47 76
        return $this->first;
48
    }
49
50
    /**
51
     * @param string $first
52
     */
53 10
    public function setFirst(string $first): void
54
    {
55 10
        $this->first = $first;
56 10
    }
57
58
    /**
59
     * @return string
60
     */
61 76
    public function getLast(): string
62
    {
63 76
        return $this->last;
64
    }
65
66
    /**
67
     * @param string $last
68
     */
69 10
    public function setLast(string $last): void
70
    {
71 10
        $this->last = $last;
72 10
    }
73
74
    /**
75
     * @return string
76
     */
77 76
    public function getEmail(): string
78
    {
79 76
        return $this->email;
80
    }
81
82
    /**
83
     * @param string $email
84
     */
85 10
    public function setEmail(string $email): void
86
    {
87 10
        $this->email = $email;
88 10
    }
89
}
90