Total Complexity | 2 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class ViewableTestObject extends DataObject implements TestOnly, ViewableDataObjectInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private static $db = [ |
||
|
|||
16 | 'Title' => 'Varchar(255)', |
||
17 | 'Content' => 'HTMLText', |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private static $table_name = 'ViewableTestObject'; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private static $extensions = [ |
||
29 | ViewableDataObject::class, |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @return DataObject |
||
34 | */ |
||
35 | public function getParentPage() |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getViewAction() |
||
48 |