Completed
Push — master ( 4314d2...3ee107 )
by Artem
03:45
created

UserHelpers::retrieveRemoteId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Slides\Connector\Auth\Concerns;
4
5
use Slides\Connector\Auth\Notifications\ResetPasswordNotification;
6
use Illuminate\Auth\Passwords\CanResetPassword;
7
8
/**
9
 * Trait UserHelpers
10
 *
11
 * @package Slides\Connector\Auth\Concerns
12
 */
13
trait UserHelpers
14
{
15
    use CanResetPassword;
16
17
    /**
18
     * @inheritdoc
19
     */
20
    public function retrieveId()
21
    {
22
        return $this->id;
23
    }
24
25
    /**
26
     * @inheritdoc
27
     */
28
    public function retrieveRemoteId()
29
    {
30
        return $this->remote_id;
31
    }
32
33
    /**
34
     * @inheritdoc
35
     */
36
    public function retrieveName()
37
    {
38
        return $this->name;
39
    }
40
41
    /**
42
     * @inheritdoc
43
     */
44
    public function retrieveEmail()
45
    {
46
        return $this->email;
47
    }
48
49
    /**
50
     * @inheritdoc
51
     */
52
    public function retrievePassword()
53
    {
54
        return $this->password;
55
    }
56
57
    /**
58
     * @inheritdoc
59
     */
60
    public function retrieveCreatedAt()
61
    {
62
        return $this->created_at;
63
    }
64
65
    /**
66
     * @inheritdoc
67
     */
68
    public function retrieveUpdatedAt()
69
    {
70
        return $this->updated_at;
71
    }
72
73
    /**
74
     * Send the password reset notification.
75
     *
76
     * @param string $token
77
     *
78
     * @return void
79
     */
80
    public function sendPasswordResetNotification($token)
81
    {
82
        $this->notify(new ResetPasswordNotification($token));
0 ignored issues
show
Bug introduced by
It seems like notify() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

82
        $this->/** @scrutinizer ignore-call */ 
83
               notify(new ResetPasswordNotification($token));
Loading history...
83
    }
84
}