| Total Complexity | 1 | 
| Total Lines | 49 | 
| Duplicated Lines | 0 % | 
| Changes | 3 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 12 | class VariationType extends DataObject | ||
| 13 | { | ||
| 14 | /** | ||
| 15 | * @var string | ||
| 16 | */ | ||
| 17 | private static $table_name = 'VariationType'; | ||
|  | |||
| 18 | |||
| 19 | /** | ||
| 20 | * @var string | ||
| 21 | */ | ||
| 22 | private static $singular_name = 'Variation Type'; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * @var string | ||
| 26 | */ | ||
| 27 | private static $plural_name = 'Variation Types'; | ||
| 28 | |||
| 29 | /** | ||
| 30 | * @var string[] | ||
| 31 | */ | ||
| 32 | private static $db = [ | ||
| 33 | 'Title' => 'Varchar', | ||
| 34 | 'SortOrder' => 'Int', | ||
| 35 | ]; | ||
| 36 | |||
| 37 | /** | ||
| 38 | * @var string[] | ||
| 39 | */ | ||
| 40 | private static $has_many = [ | ||
| 41 | 'Variations' => Variation::class, | ||
| 42 | ]; | ||
| 43 | |||
| 44 | /** | ||
| 45 | * @var string | ||
| 46 | */ | ||
| 47 | private static $default_sort = 'SortOrder'; | ||
| 48 | |||
| 49 | /** | ||
| 50 | * @return FieldList | ||
| 51 | */ | ||
| 52 | public function getCMSFields() | ||
| 63 |