Completed
Pull Request — master (#30)
by
unknown
05:27 queued 02:31
created

DtoUser   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getEmail() 0 4 1
A setEmail() 0 6 1
A getPassword() 0 4 1
A setPassword() 0 6 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