Completed
Push — develop ( 82de8f...bd9a33 )
by Wisoot
02:14
created

User   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 6
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 65
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAuthIdentifierName() 0 4 1
1
<?php
2
3
use Illuminate\Contracts\Auth\Authenticatable;
4
5
class User implements Authenticatable
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
6
{
7
8
    /**
9
     * Get the name of the unique identifier for the user.
10
     *
11
     * @return string
12
     */
13
    public function getAuthIdentifierName()
14
    {
15
        return 'id';
16
    }
17
18
    /**
19
     * Get the unique identifier for the user.
20
     *
21
     * @return mixed
22
     */
23
    public function getAuthIdentifier()
24
    {
25
        return 5;
26
    }
27
28
    /**
29
     * Get the password for the user.
30
     *
31
     * @return string
32
     */
33
    public function getAuthPassword()
34
    {
35
        return 'somepassword';
36
    }
37
38
    /**
39
     * Get the token value for the "remember me" session.
40
     *
41
     * @return string
42
     */
43
    public function getRememberToken()
44
    {
45
        return 'asjfasjfiajfi';
46
    }
47
48
    /**
49
     * Set the token value for the "remember me" session.
50
     *
51
     * @param  string $value
52
     * @return void
53
     */
54
    public function setRememberToken($value)
55
    {
56
        // TODO: Implement setRememberToken() method.
57
    }
58
59
    /**
60
     * Get the column name for the "remember me" token.
61
     *
62
     * @return string
63
     */
64
    public function getRememberTokenName()
65
    {
66
        return 'remember_token';
67
    }
68
69
}