Some general cleaning up.

This commit is contained in:
James Cole
2014-11-17 20:45:55 +01:00
parent 36cbb3d71f
commit 696e9a6fde
16 changed files with 103 additions and 168 deletions

View File

@@ -71,16 +71,34 @@ class Piggybank extends Ardent
return $this->belongsTo('Account');
}
/**
* TODO remove this method in favour of something in the FireflyIII libraries.
*
* @return int
*/
public function amountPerReminder() {
return 0;
}
/**
* TODO remove this method in favour of something in the FireflyIII libraries.
*
* @return int
*/
public function countFutureReminders()
{
return 0;
}
/**
* TODO remove this method in favour of something in the FireflyIII libraries.
*
* @param Carbon $start
* @param Carbon $target
*
* @return PiggybankRepetition
*/
public function createRepetition(Carbon $start = null, Carbon $target = null)
{
$rep = new \PiggybankRepetition;
@@ -94,6 +112,8 @@ class Piggybank extends Ardent
}
/**
* TODO remove this method in favour of something in the FireflyIII libraries.
*
* Grabs the PiggyBankRepetition that's currently relevant / active
*
* @returns \PiggybankRepetition
@@ -167,6 +187,8 @@ class Piggybank extends Ardent
}
/**
* TODO remove this method in favour of something in the FireflyIII libraries.
*
* Same but for specific date.
*
* @param Carbon $date