| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 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 \DavideCasiraghi\LaravelEventsCalendar\Models\Continent |
||
| 30 | */ |
||
| 31 | 4 | public static function getContinents($country_id) |
|
| 50 |