More cleanup and php doc stuff.

This commit is contained in:
James Cole
2014-08-10 18:22:42 +02:00
parent d0a30f71cd
commit 80c1184eac
55 changed files with 342 additions and 11 deletions

View File

@@ -50,6 +50,9 @@ class RecurringTransaction extends Ardent
'skip' => 'required|between:0,31',
];
/**
* @return array
*/
public static function factory()
{
$date = new Carbon;
@@ -68,11 +71,17 @@ class RecurringTransaction extends Ardent
];
}
/**
* @return array
*/
public function getDates()
{
return ['created_at', 'updated_at', 'date'];
}
/**
* @return Carbon
*/
public function next()
{
$start = clone $this->date;
@@ -105,6 +114,9 @@ class RecurringTransaction extends Ardent
return $start;
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function user()
{
return $this->belongsTo('User');