| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class GeoPostcode extends Model |
||
| 9 | { |
||
| 10 | use HasFactory, HasCoordinates; |
||
|
|
|||
| 11 | |||
| 12 | protected $primaryKey = 'postcode'; |
||
| 13 | |||
| 14 | protected $keyType = 'string'; |
||
| 15 | |||
| 16 | public $incrementing = false; |
||
| 17 | |||
| 18 | protected $guarded = []; |
||
| 19 | |||
| 20 | 2 | public function getTable(): string |
|
| 21 | { |
||
| 22 | 2 | return config('uk-towns.tables.postcodes'); |
|
| 23 | } |
||
| 24 | |||
| 25 | protected static function newFactory(): GeoPostcodeFactory |
||
| 28 | } |
||
| 29 | } |
||
| 30 |