Completed
Push — master ( 85aed2...e3f8d4 )
by Charles
04:40
created

ChangeEmail   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUser() 0 4 1
1
<?php
2
3
namespace yrc\api\forms;
4
5
use Base32\Base32;
6
use Yii;
7
8
/**
9
 * @class ChangeEmail
10
 * The form for validating the activation form
11
 */
12
abstract class ChangeEmail extends \yii\base\model
13
{
14
    /**
15
     * The new email to be changed
16
     * @var string $email
17
     */
18
    public $email;
19
20
    /**
21
     * The user's current password
22
     * @var string $password
23
     */
24
    public $password;
25
26
    /**
27
     * The user whose information we want to change
28
     * @var User $user
29
     */
30
    private $user;
31
32
    /**
33
     * Sets the user object
34
     * @param User $user
35
     */
36
    public function setUser($user)
37
    {
38
        $this->user = $user;
39
    }
40
}