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

TestPage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSalutation() 0 3 1
1
<?php
2
3
4
namespace Firesphere\SolrCompatibility\Tests;
5
6
use Page;
7
use SilverStripe\Dev\TestOnly;
8
9
/**
10
 * Class TestPage
11
 * @package Firesphere\SolrCompatibility\Tests
12
 */
13
class TestPage extends Page implements TestOnly
14
{
15
    /**
16
     * @var array
17
     */
18
    private static $has_one = [
19
        'TestObject' => TestObject::class,
20
    ];
21
22
    /**
23
     * @var array
24
     */
25
    private static $has_many = [
26
    ];
27
28
    /**
29
     * @return string
30
     */
31
    public function getSalutation()
32
    {
33
        return sprintf('Dear %s', $this->Title);
34
    }
35
}
36