Passed
Push — sheepy/rebase-latest ( 6694a6 )
by Simon
07:59
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 Method

Rating   Name   Duplication   Size   Complexity  
A getSalutation() 0 3 1
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