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

37 lines
571 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Entry extends Model
{
protected $table = 'entries';
/**
* Get the account record associated with the entry.
*/
public function account()
{
return $this->belongsTo('App\Account');
}
public function getPost()
{
if (is_null($this->post)) {
return;
}
return $this->post;
}
public function getTitle()
{
if (is_null($this->title)) {
return;
}
return $this->title;
}
}