| Total Complexity | 1 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class EventCategory extends Model |
||
| 8 | { |
||
| 9 | /***************************************************************************/ |
||
| 10 | /** |
||
| 11 | * The table associated with the model. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'event_categories'; |
||
| 16 | |||
| 17 | /***************************************************************************/ |
||
| 18 | |||
| 19 | use \Dimsav\Translatable\Translatable; |
||
|
|
|||
| 20 | |||
| 21 | public $translatedAttributes = ['name', 'slug']; |
||
| 22 | protected $fillable = []; |
||
| 23 | public $useTranslationFallback = true; |
||
| 24 | |||
| 25 | /***************************************************************************/ |
||
| 26 | |||
| 27 | /* |
||
| 28 | * Return the category name. |
||
| 29 | * |
||
| 30 | * @param int $categoryId |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public static function getCategoryName($categoryId) |
||
| 40 |