2014-07-29 12:55:41 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Firefly\Helper\Controllers;
|
|
|
|
|
|
|
|
|
2014-07-29 19:37:52 +02:00
|
|
|
use Carbon\Carbon;
|
|
|
|
|
2014-08-10 15:01:46 +02:00
|
|
|
/**
|
|
|
|
* Interface ChartInterface
|
|
|
|
*
|
|
|
|
* @package Firefly\Helper\Controllers
|
|
|
|
*/
|
2014-07-29 12:55:41 +02:00
|
|
|
interface ChartInterface
|
|
|
|
{
|
|
|
|
|
2014-08-10 15:01:46 +02:00
|
|
|
/**
|
|
|
|
* @param \Account $account
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-29 19:37:52 +02:00
|
|
|
public function account(\Account $account, Carbon $start, Carbon $end);
|
|
|
|
|
2014-08-10 15:01:46 +02:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-29 19:37:52 +02:00
|
|
|
public function categories(Carbon $start, Carbon $end);
|
|
|
|
|
2014-08-10 15:01:46 +02:00
|
|
|
/**
|
|
|
|
* @param Carbon $start
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-29 19:37:52 +02:00
|
|
|
public function budgets(Carbon $start);
|
|
|
|
|
2014-08-10 15:01:46 +02:00
|
|
|
/**
|
|
|
|
* @param \Account $account
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-29 19:37:52 +02:00
|
|
|
public function accountDailySummary(\Account $account, Carbon $date);
|
2014-07-30 14:45:46 +02:00
|
|
|
|
2014-08-10 15:01:46 +02:00
|
|
|
/**
|
|
|
|
* @param \Category $category
|
|
|
|
* @param $range
|
|
|
|
* @param Carbon $start
|
|
|
|
* @param Carbon $end
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-30 14:45:46 +02:00
|
|
|
public function categoryShowChart(\Category $category, $range, Carbon $start, Carbon $end);
|
2014-07-29 12:55:41 +02:00
|
|
|
}
|