Completed
Pull Request — master (#12)
by
unknown
02:47
created

ChangePassword::setNewPassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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