Total Complexity | 1 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class SearchSynonym extends DataObject |
||
16 | { |
||
17 | /** |
||
18 | * @var string Table name |
||
19 | */ |
||
20 | private static $table_name = 'SearchSynonym'; |
||
21 | |||
22 | /** |
||
23 | * @var string Singular name |
||
24 | */ |
||
25 | private static $singular_name = 'Search synonym'; |
||
1 ignored issue
–
show
|
|||
26 | |||
27 | /** |
||
28 | * @var string Plural name |
||
29 | */ |
||
30 | private static $plural_name = 'Search synonyms'; |
||
1 ignored issue
–
show
|
|||
31 | |||
32 | /** |
||
33 | * @var array DB Fields |
||
34 | */ |
||
35 | private static $db = [ |
||
36 | 'Keyword' => 'Varchar(255)', |
||
37 | 'Synonym' => 'Text' |
||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * @var array Summary fields |
||
42 | */ |
||
43 | private static $summary_fields = [ |
||
1 ignored issue
–
show
|
|||
44 | 'Keyword', |
||
45 | 'Synonym' |
||
46 | ]; |
||
47 | |||
48 | /** |
||
49 | * Get the required CMS Fields for this synonym |
||
50 | * |
||
51 | * @return FieldList |
||
52 | */ |
||
53 | 1 | public function getCMSFields() |
|
67 |