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

ChangeEmail::setUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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