Passed
Push — master ( 4eae05...09bba2 )
by Robbie
02:42
created

TestElement   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
1
<?php
2
3
namespace DNADesign\Elemental\Tests\Src;
4
5
use SilverStripe\Dev\TestOnly;
6
use DNADesign\Elemental\Models\BaseElement;
7
8
class TestElement extends BaseElement implements TestOnly
9
{
10
    private static $table_name = 'TestElement';
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 = [
0 ignored issues
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
13
        'TestValue' => 'Text'
14
    ];
15
16
    private static $controller_class = TestElementController::class;
0 ignored issues
show
introduced by
The private property $controller_class is not used, and could be removed.
Loading history...
17
18
    public function getType()
19
    {
20
        return 'A test element';
21
    }
22
}
23