VirtualPageTest_ClassA   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A modelMethod() 0 3 1
1
<?php
2
3
namespace SilverStripe\CMS\Tests\Model;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\CMS\Model\SiteTree;
7
8
class VirtualPageTest_ClassA extends SiteTree implements TestOnly
9
{
10
    private static $table_name = 'VirtualPageTest_ClassA';
0 ignored issues
show
introduced by
The private property $table_name is not used, and could be removed.
Loading history...
11
12
    private static $db = [
0 ignored issues
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
13
        'MyInitiallyCopiedField' => 'Text',
14
        'MyVirtualField' => 'Text',
15
        'MyNonVirtualField' => 'Text',
16
        'CastingTest' => VirtualPageTest_TestDBField::class,
17
    ];
18
19
    private static $allowed_children = [
0 ignored issues
show
introduced by
The private property $allowed_children is not used, and could be removed.
Loading history...
20
        VirtualPageTest_ClassB::class,
21
    ];
22
23
    public function modelMethod()
24
    {
25
        return 'hi there';
26
    }
27
}
28