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