Passed
Push — hans/code-cleanup ( ca2456...0eaecc )
by Simon
05:29
created

TestPage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 2
b 0
f 0
dl 0
loc 12
rs 10
1
<?php
2
3
4
namespace Firesphere\SolrSearch\Tests;
5
6
use Page;
7
use SilverStripe\Dev\TestOnly;
8
9
class TestPage extends Page implements TestOnly
10
{
11
    private static $has_one = [
12
        'TestObject' => TestObject::class
13
    ];
14
15
    private static $has_many = [
16
    ];
17
18
    public function getSalutation()
19
    {
20
        return sprintf('Dear %s', $this->Title);
21
    }
22
}
23