SiteTreeTest_StageStatusInherit   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

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