Total Complexity | 8 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 0 |
1 | <?php |
||
7 | class Venue extends Model |
||
8 | { |
||
9 | public $timestamps = true; |
||
10 | protected $table = 'venue'; |
||
11 | protected $fillable = [ |
||
12 | 'venue_name', |
||
13 | 'address', |
||
14 | 'details', |
||
15 | 'city', |
||
16 | 'CP', |
||
17 | 'state', |
||
18 | 'country_id', |
||
19 | 'latitude', |
||
20 | 'longitude', |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * A Venue Belongs to a Country |
||
25 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
26 | */ |
||
27 | public function country() |
||
28 | { |
||
29 | return $this->belongsTo(Country::class); |
||
30 | } |
||
31 | |||
32 | |||
33 | /** |
||
34 | * Get the Current User location |
||
35 | * @param $tournament |
||
36 | * @param $latitude |
||
37 | * @param $longitude |
||
38 | * @return $this |
||
39 | */ |
||
40 | 8 | public function setDefaultLocation($tournament, $latitude, $longitude) |
|
57 | } |
||
58 | } |
||
59 |