Completed
Push — feature/user_input_newlines ( 7c3825...9ce77c )
by Tristan
15:58 queued 09:53
created

BackpackUser::getEmailForPasswordReset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Models;
4
5
use App\Models\User;
6
use Backpack\Base\app\Notifications\ResetPasswordNotification as ResetPasswordNotification;
7
use Tightenco\Parental\HasParentModel;
8
9
class BackpackUser extends User
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class BackpackUser
Loading history...
10
{
11
    use HasParentModel;
0 ignored issues
show
Bug introduced by
The trait Tightenco\Parental\HasParentModel requires the property $returnsChildModels which is not provided by App\Models\BackpackUser.
Loading history...
12
13
    protected $table = 'users';
14
15
    /**
16
     * Send the password reset notification.
17
     *
18
     * @param string $token
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
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