Team   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A canView() 0 3 1
1
<?php
2
3
namespace SilverStripe\Comments\Tests\Stubs;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\ORM\DataObject;
7
8
class Team extends DataObject implements TestOnly
9
{
10
    private static $table_name = 'CommentsTest_Team';
0 ignored issues
show
introduced by
The private property $table_name is not used, and could be removed.
Loading history...
11
12
    private static $db = array(
0 ignored issues
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
13
        'Name' => 'Varchar',
14
        'City' => 'Varchar',
15
    );
16
17
    private static $many_many = [
0 ignored issues
show
introduced by
The private property $many_many is not used, and could be removed.
Loading history...
18
        'Players' => Player::class,
19
    ];
20
21
    private static $has_many = [
0 ignored issues
show
introduced by
The private property $has_many is not used, and could be removed.
Loading history...
22
        'Cheerleaders' => Cheerleader::class,
23
    ];
24
25
    private static $searchable_fields = [
0 ignored issues
show
introduced by
The private property $searchable_fields is not used, and could be removed.
Loading history...
26
        'Name',
27
        'City',
28
        'Cheerleaders.Name',
29
    ];
30
31
    public function canView($member = null)
32
    {
33
        return true;
34
    }
35
}
36