Rewrote some methods to fix #341

This commit is contained in:
James Cole
2016-10-21 06:26:12 +02:00
parent f83aaf77f1
commit a38e057fa7
3 changed files with 184 additions and 46 deletions

View File

@@ -167,6 +167,17 @@ interface BillRepositoryInterface
public function lastFoundMatch(Bill $bill): Carbon;
/**
* Given a bill and a date, this method will tell you at which moment this bill expects its next
* transaction. Whether or not it is there already, is not relevant.
*
* @param Bill $bill
* @param Carbon $date
*
* @return \Carbon\Carbon
*/
public function nextDateMatch(Bill $bill, Carbon $date): Carbon;
/**
* @param Bill $bill
* @param Carbon $date