Passed
Push — master ( 177f69...7b0b69 )
by Simon
08:14
created

TestObject   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A canView() 0 3 1
1
<?php
2
3
4
namespace Firesphere\SolrCompatibility\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';
12
13
    private static $db = [
14
        'Title'        => 'Varchar(255)',
15
        'ShowInSearch' => 'Boolean',
16
    ];
17
18
    private static $has_many = [
19
        'TestPages'    => TestPage::class,
20
        'TestRelation' => TestRelationObject::class,
21
    ];
22
23
    public function canView($member = null)
24
    {
25
        return true;
26
    }
27
}
28