Total Complexity | 2 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class PromoObject extends BaseElementObject |
||
18 | { |
||
19 | /** |
||
20 | * @return string |
||
21 | */ |
||
22 | private static $singular_name = 'Promo'; |
||
|
|||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | private static $plural_name = 'Promos'; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private static $belongs_many_many = array( |
||
33 | 'ElementPromos' => ElementPromos::class, |
||
34 | ); |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private static $table_name = 'PromoObject'; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | private static $summary_fields = [ |
||
45 | 'Summary', |
||
46 | ]; |
||
47 | |||
48 | 1 | /** |
|
49 | 1 | * @return FieldList |
|
50 | * |
||
51 | 1 | * @throws \Exception |
|
52 | 1 | */ |
|
53 | 1 | public function getCMSFields() |
|
74 | } |
||
75 | |||
76 | /** |
||
77 | * @return mixed |
||
78 | */ |
||
79 | public function getSummary() |
||
84 |