BackpackUser::getEmailForPasswordReset()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Backpack\Base\app\Models;
4
5
use App\User;
6
use Backpack\Base\app\Models\Traits\InheritsRelationsFromParentModel;
7
use Backpack\Base\app\Notifications\ResetPasswordNotification as ResetPasswordNotification;
8
9
class BackpackUser extends User
10
{
11
    use InheritsRelationsFromParentModel;
12
13
    protected $table = 'users';
14
15
    /**
16
     * Send the password reset notification.
17
     *
18
     * @param string $token
19
     *
20
     * @return void
21
     */
22
    public function sendPasswordResetNotification($token)
23
    {
24
        $this->notify(new ResetPasswordNotification($token));
25
    }
26
27
    /**
28
     * Get the e-mail address where password reset links are sent.
29
     *
30
     * @return string
31
     */
32
    public function getEmailForPasswordReset()
33
    {
34
        return $this->email;
35
    }
36
}
37