Completed
Pull Request — master (#12)
by
unknown
03:26
created

ChangePassword   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getNewPassword() 0 4 1
A setNewPassword() 0 4 1
1
<?php
2
3
namespace SumoCoders\FrameworkMultiUserBundle\Form;
4
5
use Symfony\Component\Validator\Constraints as Assert;
6
7
class ChangePassword
8
{
9
    /**
10
     * @Assert\Length(
11
     *     min = 6,
12
     *     minMessage = "sumocoders.multiuserbundle.form.length"
13
     * )
14
     */
15
    protected $newPassword;
16
17
    public function getNewPassword()
18
    {
19
        return $this->newPassword;
20
    }
21
22
    public function setNewPassword($password)
23
    {
24
        $this->newPassword = $password;
25
    }
26
}
27