| Total Complexity | 3 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class EventVenue extends Model |
||
| 8 | { |
||
| 9 | /***************************************************************************/ |
||
| 10 | /** |
||
| 11 | * The table associated with the model. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'event_venues'; |
||
| 16 | |||
| 17 | /***************************************************************************/ |
||
| 18 | |||
| 19 | protected $fillable = [ |
||
| 20 | 'name', 'slug', 'continent_id', 'country_id', 'city', 'state_province', 'address', 'zip_code', 'description', 'website', 'created_by', 'created_at', 'updated_at', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /***************************************************************************/ |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Return the venue name - used by - /http/resources/event.php. |
||
| 27 | * |
||
| 28 | * @param int $venueId |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 1 | public static function getVenueName($venueId) |
|
| 36 | } |
||
| 37 | |||
| 38 | /***************************************************************************/ |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Return true if the Venue contains any event |
||
| 42 | * |
||
| 43 | * @param int $venueId |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 4 | public static function venueContainsEvents($venueId) |
|
| 60 |