RestfulServerTestPage
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 21
c 0
b 0
f 0
wmc 0
1
<?php
2
3
namespace SilverStripe\RestfulServer\Tests\Stubs;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\ORM\DataObject;
7
8
class RestfulServerTestPage extends DataObject implements TestOnly
9
{
10
    private static $api_access = false;
0 ignored issues
show
introduced by
The private property $api_access is not used, and could be removed.
Loading history...
11
12
    private static $table_name = 'RestfulServerTestPage';
0 ignored issues
show
introduced by
The private property $table_name is not used, and could be removed.
Loading history...
13
14
    private static $db = array(
0 ignored issues
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
15
        'Title' => 'Text',
16
        'Content' => 'HTMLText',
17
    );
18
19
    private static $has_one = array(
0 ignored issues
show
introduced by
The private property $has_one is not used, and could be removed.
Loading history...
20
        'Author' => RestfulServerTestAuthor::class,
21
    );
22
23
    private static $has_many = array(
0 ignored issues
show
introduced by
The private property $has_many is not used, and could be removed.
Loading history...
24
        'TestComments' => RestfulServerTestComment::class
25
    );
26
27
    private static $belongs_many_many = array(
0 ignored issues
show
introduced by
The private property $belongs_many_many is not used, and could be removed.
Loading history...
28
        'RelatedAuthors' => RestfulServerTestAuthor::class,
29
    );
30
}
31