Passed
Push — master ( b59ea0...ef0b76 )
by Simon
02:07
created

TestObject   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A canView() 0 3 1
1
<?php
2
3
4
namespace Firesphere\SolrSearch\Tests;
5
6
use SilverStripe\Dev\TestOnly;
7
use SilverStripe\ORM\DataObject;
8
9
class TestObject extends DataObject implements TestOnly
10
{
11
    private static $table_name = 'TestObject';
1 ignored issue
show
introduced by
The private property $table_name is not used, and could be removed.
Loading history...
12
13
    private static $db = [
1 ignored issue
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
14
        'Title'        => 'Varchar(255)',
15
        'ShowInSearch' => 'Boolean',
16
    ];
17
18
    private static $has_many = [
1 ignored issue
show
introduced by
The private property $has_many is not used, and could be removed.
Loading history...
19
        'TestPages'    => TestPage::class,
20
        'TestRelation' => TestRelationObject::class,
21
    ];
22
23
    public function canView($member = null)
24
    {
25
        return true;
26
    }
27
}
28