BackpackUser   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A sendPasswordResetNotification() 0 4 1
A getEmailForPasswordReset() 0 4 1
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