Completed
Push — master ( d874fd...3a6bc2 )
by Conrad
01:56
created

src/Models/AccessToken.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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
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
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
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