2016-11-09 14:36:54 -06:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ReportGeneratorInterface.php
|
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
2017-04-09 00:44:22 -05:00
|
|
|
declare(strict_types=1);
|
2016-11-09 14:36:54 -06:00
|
|
|
|
|
|
|
namespace FireflyIII\Generator\Report;
|
|
|
|
|
|
|
|
|
|
|
|
use Carbon\Carbon;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface ReportGeneratorInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Generator\Report
|
|
|
|
*/
|
|
|
|
interface ReportGeneratorInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function generate(): string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return ReportGeneratorInterface
|
|
|
|
*/
|
|
|
|
public function setAccounts(Collection $accounts): ReportGeneratorInterface;
|
|
|
|
|
2016-12-08 14:50:20 -06:00
|
|
|
/**
|
|
|
|
* @param Collection $budgets
|
|
|
|
*
|
|
|
|
* @return ReportGeneratorInterface
|
|
|
|
*/
|
|
|
|
public function setBudgets(Collection $budgets): ReportGeneratorInterface;
|
|
|
|
|
2016-11-09 23:23:21 -06:00
|
|
|
/**
|
|
|
|
* @param Collection $categories
|
|
|
|
*
|
|
|
|
* @return ReportGeneratorInterface
|
|
|
|
*/
|
|
|
|
public function setCategories(Collection $categories): ReportGeneratorInterface;
|
|
|
|
|
2016-11-09 14:36:54 -06:00
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return ReportGeneratorInterface
|
|
|
|
*/
|
|
|
|
public function setEndDate(Carbon $date): ReportGeneratorInterface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
*
|
|
|
|
* @return ReportGeneratorInterface
|
|
|
|
*/
|
|
|
|
public function setStartDate(Carbon $date): ReportGeneratorInterface;
|
|
|
|
|
2017-02-15 13:07:10 -06:00
|
|
|
/**
|
|
|
|
* @param Collection $tags
|
|
|
|
*
|
|
|
|
* @return ReportGeneratorInterface
|
|
|
|
*/
|
|
|
|
public function setTags(Collection $tags): ReportGeneratorInterface;
|
|
|
|
|
2016-12-22 12:42:45 -06:00
|
|
|
}
|