Completed
Push — master ( 04a525...97461f )
by Robbie
02:19
created

Team   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A canView() 0 4 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
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 = array(
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
        'Name' => 'Varchar',
14
        'City' => 'Varchar',
15
    );
16
17
    private static $many_many = [
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...
18
        'Players' => Player::class,
19
    ];
20
21
    private static $has_many = [
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
        'Cheerleaders' => Cheerleader::class,
23
    ];
24
25
    private static $searchable_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...
26
        'Name',
27
        'City',
28
        'Cheerleaders.Name',
29
    ];
30
31
    public function canView($member = null)
32
    {
33
        return true;
34
    }
35
}
36