AccessToken
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
1
<?php
2
3
namespace AdvancedLearning\Oauth2Server\Models;
4
5
use SilverStripe\ORM\DataObject;
6
use SilverStripe\Security\Member;
7
8
/**
9
 * Class AccessTokenEntity
10
 *
11
 * @package AdvancedLearning\Oauth2Server\Models
12
 *
13
 * @property int    $ID
14
 * @property string $Identifier
15
 * @property string $Scopes
16
 * @property string $Name
17
 * @property string $ExpiryDateTime
18
 * @property string $User
19
 * @property bool   $Revoked
20
 */
21
class AccessToken extends DataObject
22
{
23
    private static $table_name = 'OauthAccessToken';
0 ignored issues
show
Comprehensibility introduced by Conrad Dobbs
Consider using a different property name as you override a private property of the parent class.
Loading history...
24
25
    private static $db = [
0 ignored issues
show
Comprehensibility introduced by Conrad Dobbs
Consider using a different property name as you override a private property of the parent class.
Loading history...
26
        'Identifier' => 'Varchar(255)',
27
        'Scopes' => 'Text',
28
        'Name' => 'Varchar(255)',
29
        'ExpiryDateTime' => 'Datetime',
30
        'Revoked' => 'Boolean',
31
        'User' => 'Varchar(50)'
32
    ];
33
34
    private static $summary_fields = [
0 ignored issues
show
Comprehensibility introduced by Conrad Dobbs
Consider using a different property name as you override a private property of the parent class.
Loading history...
35
        'Name',
36
        'ExpireDateTime',
37
        'Revoked'
38
    ];
39
}
40