Cleaning up

This commit is contained in:
James Cole
2016-01-01 21:15:03 +01:00
parent 27cabb398e
commit 5eb0e18cae
5 changed files with 43 additions and 49 deletions

View File

@@ -3,8 +3,6 @@
namespace FireflyIII\Helpers\Report;
use Carbon\Carbon;
use FireflyIII\Models\Account;
use FireflyIII\Models\Budget;
use Illuminate\Support\Collection;
/**
@@ -16,16 +14,16 @@ interface ReportQueryInterface
{
/**
* This method returns all the "in" transaction journals for the given account and given period. The amount
* is stored in "journalAmount".
* Returns an array of the amount of money spent in the given accounts (on withdrawals, opening balances and transfers)
* grouped by month like so: "2015-01" => '123.45'
*
* @param Collection $accounts
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
* @return array
*/
public function income(Collection $accounts, Carbon $start, Carbon $end);
public function earnedPerMonth(Collection $accounts, Carbon $start, Carbon $end);
/**
* This method returns all the "out" transaction journals for the given account and given period. The amount
@@ -40,16 +38,16 @@ interface ReportQueryInterface
public function expense(Collection $accounts, Carbon $start, Carbon $end);
/**
* Returns an array of the amount of money spent in the given accounts (on withdrawals, opening balances and transfers)
* grouped by month like so: "2015-01" => '123.45'
* This method returns all the "in" transaction journals for the given account and given period. The amount
* is stored in "journalAmount".
*
* @param Collection $accounts
* @param Carbon $start
* @param Carbon $end
*
* @return array
* @return Collection
*/
public function spentPerMonth(Collection $accounts, Carbon $start, Carbon $end);
public function income(Collection $accounts, Carbon $start, Carbon $end);
/**
* Returns an array of the amount of money spent in the given accounts (on withdrawals, opening balances and transfers)
@@ -61,7 +59,7 @@ interface ReportQueryInterface
*
* @return array
*/
public function earnedPerMonth(Collection $accounts, Carbon $start, Carbon $end);
public function spentPerMonth(Collection $accounts, Carbon $start, Carbon $end);
}