HybridSessionDataObject
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 17
c 0
b 0
f 0
1
<?php
2
3
namespace SilverStripe\HybridSessions;
4
5
use SilverStripe\ORM\DataObject;
6
7
class HybridSessionDataObject extends DataObject
8
{
9
    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...
10
        'SessionID' => 'Varchar(64)',
11
        'Expiry' => 'Int',
12
        'Data' => 'Text'
13
    ];
14
15
    private static $indexes = [
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...
16
        'SessionID' => [
17
            'type' => 'unique'
18
        ],
19
        'Expiry' => true
20
    ];
21
22
    private static $table_name = 'HybridSessionDataObject';
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...
23
}
24