| Total Complexity | 3 | 
| Total Lines | 22 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 7 | class Announcement extends Model | ||
| 8 | { | ||
| 9 | protected $table='announcement'; | ||
| 10 | protected $primaryKey='anid'; | ||
| 11 | |||
| 12 | protected $fillable=[ | ||
| 13 | 'title', 'content' | ||
| 14 | ]; | ||
| 15 | |||
| 16 | public function user() | ||
| 17 |     { | ||
| 18 |         return $this->belongsTo('App\Models\Eloquent\User', 'uid'); | ||
| 19 | } | ||
| 20 | |||
| 21 | public function getPostDateParsedAttribute() | ||
| 22 |     { | ||
| 23 | return formatHumanReadableTime($this->created_at); | ||
| 24 | } | ||
| 25 | |||
| 26 | public function getContentParsedAttribute() | ||
| 29 | } | ||
| 30 | } | ||
| 31 |