Files
monica/app/ActivityType.php
T
Régis FreydandGitHub a2172f0851 Add style CI (#503)
Hopefully this will result in slightly better code.
2017-07-26 21:02:55 -04:00

24 lines
454 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ActivityType extends Model
{
protected $table = 'activity_types';
/**
* Get the activity type group record associated with the activity types.
*/
public function group()
{
return $this->belongsTo('App\ActivityTypeGroup');
}
public function getTranslationKeyAsString()
{
return trans('people.activity_type_'.$this->key);
}
}