mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 11:20:39 -06:00
eb31934fb7
Used initially to provide fiscal year support to the reports.
36 lines
757 B
PHP
36 lines
757 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Helpers;
|
|
|
|
use Carbon\Carbon;
|
|
|
|
/**
|
|
* Interface FiscalHelperInterface
|
|
*
|
|
* @package FireflyIII\Helpers
|
|
*/
|
|
interface FiscalHelperInterface
|
|
{
|
|
|
|
/**
|
|
* This method produces a clone of the Carbon date object passed, checks preferences
|
|
* and calculates the first day of the fiscal year.
|
|
*
|
|
* @param Carbon $start
|
|
*
|
|
* @return Carbon date object
|
|
*/
|
|
public function startOfFiscalYear(Carbon $date);
|
|
|
|
/**
|
|
* This method produces a clone of the Carbon date object passed, checks preferences
|
|
* and calculates the last day of the fiscal year.
|
|
*
|
|
* @param Carbon $date
|
|
*
|
|
* @return Carbon date object
|
|
*/
|
|
public function endOfFiscalYear(Carbon $start);
|
|
|
|
}
|