Test Failed
Push — master ( a6b51e...5fffdb )
by Gabriel
08:05
created

Users::generateTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
namespace ByTIC\Hello\Models\Users;
4
5
use ByTIC\Hello\Models\Users\Traits\UsersTrait;
6
use League\OAuth2\Server\Entities\ClientEntityInterface;
7
use League\OAuth2\Server\Entities\UserEntityInterface;
8
use League\OAuth2\Server\Repositories\UserRepositoryInterface;
9
use Nip\Utility\Traits\SingletonTrait;
10
11
/**
12
 * Class Users
13
 * @package ByTIC\Hello\Models\Users
14
 *
15
 * @method User getNew()
16
 */
17
class Users extends \Nip\Records\RecordManager implements UserRepositoryInterface
18
{
19
    use SingletonTrait, UsersTrait;
20
21
    /**
22
     * Get a user entity.
23
     *
24
     * @param string $username
25
     * @param string $password
26
     * @param string $grantType The grant type used
27
     * @param ClientEntityInterface $clientEntity
28
     *
29
     * @return UserEntityInterface
30
     */
31
    public function getUserEntityByUserCredentials(
32
        $username,
33
        $password,
34
        $grantType,
35
        ClientEntityInterface $clientEntity
36
    ) {
37
        // TODO: Implement getUserEntityByUserCredentials() method.
38
    }
39
40
    /** @noinspection PhpMissingParentCallCommonInspection
41
     * @inheritDoc
42
     */
43 1
    protected function generateTable()
44
    {
45 1
        return 'users';
46
    }
47
}
48