Test Failed
Push — master ( b4c459...c223c8 )
by Maximo
02:08
created

Users   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 5 1
A getKey() 0 3 1
A getSource() 0 3 1
1
<?php
0 ignored issues
show
Coding Style introduced by
End of line character is invalid; expected "\n" but found "\r\n"
Loading history...
2
declare(strict_types=1);
3
4
namespace Gewaer\Models;
5
6
class Users extends \Baka\Auth\Models\Users
7
{
8
    /**
9
     * Initialize method for model.
10
     */
11
    public function initialize()
12
    {
13
        parent::initialize();
14
15
        $this->setSource('users');
16
    }
17
18
    /**
19
     * Returns table name mapped in the model.
20
     *
21
     * @return string
22
     */
23
    public function getSource(): string
24
    {
25
        return 'users';
26
    }
27
28
    /**
29
     * Get the User key for redis
30
     *
31
     * @return string
32
     */
33
    public function getKey(): string
34
    {
35
        return $this->id;
36
    }
37
}
38