Completed
Pull Request — master (#30)
by
unknown
05:27 queued 02:31
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
38 1
        return $this;
39
    }
40
41
    /**
42
     * @return mixed
43
     */
44 1
    public function getPassword()
45
    {
46 1
        return $this->password;
47
    }
48
49
    /**
50
     * @param mixed $password
51
     *
52
     * @return $this
53
     */
54 1
    public function setPassword($password)
55
    {
56 1
        $this->password = $password;
57
58 1
        return $this;
59
    }
60
}
61