| Total Complexity | 1 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Country extends Model |
||
| 8 | { |
||
| 9 | public $incrementing = false; |
||
| 10 | protected $casts = [ |
||
| 11 | 'code' => 'string', |
||
| 12 | ]; |
||
| 13 | protected $primaryKey = 'code'; |
||
| 14 | protected $keyType = 'string'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The attributes that are mass assignable. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $fillable = [ |
||
| 22 | 'name', |
||
| 23 | 'code' |
||
| 24 | ]; |
||
| 25 | |||
| 26 | protected $mappingProperties = array( |
||
| 27 | 'name' => [ |
||
| 28 | 'type' => 'string', |
||
| 29 | "analyzer" => "standard", |
||
| 30 | ], |
||
| 31 | 'code' => [ |
||
| 32 | 'type' => 'string', |
||
| 33 | "analyzer" => "standard", |
||
| 34 | ], |
||
| 35 | ); |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Each language may have several translations. |
||
| 39 | */ |
||
| 40 | public function locales() |
||
| 45 |