Total Complexity | 5 |
Total Lines | 75 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class FeatureObject extends BaseElementObject |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private static $db = array( |
||
|
|||
21 | 'Sort' => 'Int', |
||
22 | ); |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | private static $has_one = array( |
||
28 | 'ElementFeatures' => ElementFeatures::class, |
||
29 | ); |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private static $table_name = 'FeatureObject'; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | private static $summary_fields = [ |
||
40 | 'Summary', |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | private static $default_sort = 'Sort'; |
||
47 | |||
48 | 1 | /** |
|
49 | 1 | * @return FieldList |
|
50 | 1 | * |
|
51 | * @throws \Exception |
||
52 | */ |
||
53 | public function getCMSFields() |
||
66 | 3 | } |
|
67 | |||
68 | 3 | /** |
|
69 | 3 | * @return null |
|
70 | 3 | */ |
|
71 | public function getPage() |
||
82 | } |
||
83 | |||
84 | /** |
||
85 | * @return mixed |
||
86 | */ |
||
87 | public function getSummary() |
||
92 |