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

TestRelationObject::getFarmAnimals()   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 SilverStripe\Dev\TestOnly;
7
use SilverStripe\ORM\DataObject;
8
9
class TestRelationObject extends DataObject implements TestOnly
10
{
11
    private static $db = [
12
        'Title' => 'Varchar(255)'
13
    ];
14
15
    private static $has_one = [
16
        'TestObject' => TestObject::class
17
    ];
18
19
    public function getFarmAnimals()
20
    {
21
        return ['cow', 'sheep'];
22
    }
23
}
24