Passed
Push — sheepy/rebased-intrtospection ( 8df98b )
by Simon
07:27
created

TestPage::getSalutation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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