Player
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 22
c 0
b 0
f 0
1
<?php
2
3
namespace ilateral\SilverStripe\SlightlyBetterBulkLoader\Tests\Data;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\ORM\DataObject;
7
8
class Player extends DataObject implements TestOnly
9
{
10
    private static $table_name = "SlightlyBetterBulkLoader_Player";
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...
11
12
    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...
13
        'FirstName' => 'Varchar(255)',
14
        'Biography' => 'HTMLText',
15
        'Birthday' => 'Date',
16
        'ExternalIdentifier' => 'Varchar(255)',
17
        'IsRegistered' => 'Boolean',
18
        'Status' => 'Varchar'
19
    ];
20
21
    private static $field_labels = [
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...
22
        'FirstName' => 'Player Name'
23
    ];
24
25
    private static $required_fields = [
26
        'FirstName',
27
        'Birthday'
28
    ];
29
}
30