| Total Complexity | 1 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class PromoObject extends BaseElementObject |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | private static $singular_name = 'Promo'; |
||
|
|
|||
| 20 | |||
| 21 | /** |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | private static $plural_name = 'Promos'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | private static $belongs_many_many = array( |
||
| 30 | 'ElementPromos' => ElementPromos::class, |
||
| 31 | ); |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private static $table_name = 'PromoObject'; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return FieldList |
||
| 40 | * |
||
| 41 | * @throws \Exception |
||
| 42 | */ |
||
| 43 | public function getCMSFields() |
||
| 66 |