Passed
Push — 4 ( 5c2b28...a2ab1a )
by Maxime
13:32 queued 04:46
created

HierarchyOnSubclassTestObject::cmstreeclasses()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace SilverStripe\ORM\Tests\HierarchyTest;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\ORM\DataObject;
7
use SilverStripe\Versioned\Versioned;
8
9
/**
10
 * @mixin Versioned
11
 */
12
class HierarchyOnSubclassTestObject extends DataObject implements TestOnly
13
{
14
    private static $table_name = 'HierarchyOnSubclassTest_Object';
0 ignored issues
show
introduced by
The private property $table_name is not used, and could be removed.
Loading history...
15
16
    private static $db = [
0 ignored issues
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
17
        'Title' => 'Varchar'
18
    ];
19
20
    private static $extensions = [
0 ignored issues
show
introduced by
The private property $extensions is not used, and could be removed.
Loading history...
21
        Versioned::class,
22
    ];
23
24
    private static $default_sort = 'Title ASC';
0 ignored issues
show
introduced by
The private property $default_sort is not used, and could be removed.
Loading history...
25
26
    public function cmstreeclasses()
27
    {
28
        return $this->markingClasses();
0 ignored issues
show
Bug introduced by
The method markingClasses() does not exist on SilverStripe\ORM\Tests\H...chyOnSubclassTestObject. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

28
        return $this->/** @scrutinizer ignore-call */ markingClasses();
Loading history...
29
    }
30
}
31