Code clean up and reformat.

This commit is contained in:
James Cole
2014-11-12 22:37:09 +01:00
parent 258d6a1688
commit 4aa9a04516
33 changed files with 1543 additions and 1611 deletions

View File

@@ -1,6 +1,7 @@
<?php
namespace FireflyIII\Database\Ifaces;
use Carbon\Carbon;
use Illuminate\Support\Collection;
@@ -11,6 +12,13 @@ use Illuminate\Support\Collection;
*/
interface TransactionJournalInterface
{
/**
* Get the very first transaction journal.
*
* @return mixed
*/
public function first();
/**
* @param Carbon $start
* @param Carbon $end
@@ -20,10 +28,11 @@ interface TransactionJournalInterface
public function getInDateRange(Carbon $start, Carbon $end);
/**
* Get the very first transaction journal.
* @return mixed
* @param Carbon $date
*
* @return float
*/
public function first();
public function getSumOfExpensesByMonth(Carbon $date);
/**
* @param Carbon $date
@@ -32,11 +41,4 @@ interface TransactionJournalInterface
*/
public function getSumOfIncomesByMonth(Carbon $date);
/**
* @param Carbon $date
*
* @return float
*/
public function getSumOfExpensesByMonth(Carbon $date);
}