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