Completed
Push — master ( 0f5e6b...d874fd )
by Conrad
01:54
created

Scope

Complexity

Total Complexity 0

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 14
c 0
b 0
f 0
1
<?php
2
3
namespace AdvancedLearning\Oauth2Server\Models;
4
5
use SilverStripe\ORM\DataObject;
6
7
/**
8
 * Class ScopeEntity
9
 *
10
 * @package AdvancedLearning\Oauth2Server\Models
11
 *
12
 * @property string $Name
13
 * @property string $Description
14
 */
15
class Scope extends DataObject
16
{
17
    private static $table_name = 'OauthScope';
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...
Unused Code introduced by
The property $table_name is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
18
19
    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...
Unused Code introduced by
The property $db is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
20
        'Name' => 'Varchar(100)',
21
        'Description' => 'Varchar(255)'
22
    ];
23
24
    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...
Unused Code introduced by
The property $summary_fields is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
25
        'Name',
26
        'Description'
27
    ];
28
}
29