SiteTreeTest_StageStatusInherit::getStatusFlags()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SilverStripe\CMS\Tests\Model;
4
5
use SilverStripe\CMS\Model\SiteTree;
6
use SilverStripe\Dev\TestOnly;
7
8
class SiteTreeTest_StageStatusInherit extends SiteTree implements TestOnly
9
{
10
    private static $table_name = 'SiteTreeTest_StageStatusInherit';
0 ignored issues
show
introduced by
The private property $table_name is not used, and could be removed.
Loading history...
11
12
    public function getStatusFlags($cached = true)
13
    {
14
        $flags = parent::getStatusFlags($cached);
15
        $flags['inherited-class'] = "InheritedTitle";
16
        return $flags;
17
    }
18
}
19