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

@@ -37,6 +37,9 @@ class Piggybank extends Ardent
'order' => 'required:min:1',
];
/**
* @return array
*/
public static function factory()
{
$start = new Carbon;
@@ -52,14 +55,20 @@ class Piggybank extends Ardent
];
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function account()
{
return $this->belongsTo('Account');
}
/**
* @return array
*/
public function getDates()
{
return array('created_at', 'updated_at', 'targetdate');
return ['created_at', 'updated_at', 'targetdate'];
}
}