Completed
Pull Request — dev (#26)
by nonanerz
04:08
created

DtoUser   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 52
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getEmail() 0 4 1
A setEmail() 0 5 1
A getPassword() 0 4 1
A setPassword() 0 5 1
1
<?php
2
3
4
namespace AppBundle\Entity\DTO;
5
6
7
use Symfony\Component\Validator\Constraints as Assert;
8
9
class DtoUser
10
{
11
    /**
12
     * @var
13
     * @Assert\NotBlank()
14
     */
15
    private $email;
16
17
    /**
18
     * @var
19
     * @Assert\NotBlank()
20
     */
21
    private $password;
22
23
    /**
24
     * @return mixed
25
     */
26 1
    public function getEmail()
27
    {
28 1
        return $this->email;
29
    }
30
31
    /**
32
     * @param mixed $email
33
     *
34
     * @return $this
35
     */
36 1
    public function setEmail($email)
37
    {
38 1
        $this->email = $email;
39 1
        return $this;
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45 1
    public function getPassword()
46
    {
47 1
        return $this->password;
48
    }
49
50
    /**
51
     * @param mixed $password
52
     *
53
     * @return $this
54
     */
55 1
    public function setPassword($password)
56
    {
57 1
        $this->password = $password;
58 1
        return $this;
59
    }
60
}
61