Completed
Pull Request — master (#30)
by
unknown
03:46
created

DtoUser::getPassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace AppBundle\Entity\DTO;
4
5
use Symfony\Component\Validator\Constraints as Assert;
6
7
class DtoUser
8
{
9
    /**
10
     * @var
11
     * @Assert\NotBlank()
12
     */
13
    private $email;
14
15
    /**
16
     * @var
17
     * @Assert\NotBlank()
18
     */
19
    private $password;
20
21
    /**
22
     * @return mixed
23
     */
24 1
    public function getEmail()
25
    {
26 1
        return $this->email;
27
    }
28
29
    /**
30
     * @param mixed $email
31
     *
32
     * @return $this
33
     */
34 1
    public function setEmail($email)
35
    {
36 1
        $this->email = $email;
37 1
        return $this;
38
    }
39
40
    /**
41
     * @return mixed
42
     */
43 1
    public function getPassword()
44
    {
45 1
        return $this->password;
46
    }
47
48
    /**
49
     * @param mixed $password
50
     *
51
     * @return $this
52
     */
53 1
    public function setPassword($password)
54
    {
55 1
        $this->password = $password;
56 1
        return $this;
57
    }
58
}
59