| Total Complexity | 4 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Coverage | 70% |
| 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() |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return null |
||
| 68 | */ |
||
| 69 | public function getPage() |
||
| 82 |