| Total Complexity | 1 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | class Continent extends Model |
||
| 9 | { |
||
| 10 | /***************************************************************************/ |
||
| 11 | /** |
||
| 12 | * The table associated with the model. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $table = 'continents'; |
||
| 17 | |||
| 18 | /***************************************************************************/ |
||
| 19 | |||
| 20 | protected $fillable = [ |
||
| 21 | 'name', 'code', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /***************************************************************************/ |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Return all the continents ordered by name. |
||
| 28 | * |
||
| 29 | * @return iterable |
||
| 30 | */ |
||
| 31 | 4 | public static function getContinents(): iterable |
|
| 41 |