2016-01-26 19:54:04 -06:00
|
|
|
<?php
|
2016-02-05 05:08:25 -06:00
|
|
|
declare(strict_types = 1);
|
2016-01-26 19:54:04 -06:00
|
|
|
|
|
|
|
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
|
2016-02-04 00:23:14 -06:00
|
|
|
* and calculates the last day of the fiscal year.
|
2016-01-26 19:54:04 -06:00
|
|
|
*
|
2016-02-04 00:23:14 -06:00
|
|
|
* @param Carbon $date
|
2016-01-26 19:54:04 -06:00
|
|
|
*
|
|
|
|
* @return Carbon date object
|
|
|
|
*/
|
2016-02-04 00:23:14 -06:00
|
|
|
public function endOfFiscalYear(Carbon $date);
|
2016-01-26 19:54:04 -06:00
|
|
|
|
|
|
|
/**
|
2016-02-04 00:23:14 -06:00
|
|
|
* This method produces a clone of the Carbon date object passed, checks preferences
|
|
|
|
* and calculates the first day of the fiscal year.
|
2016-01-26 19:54:04 -06:00
|
|
|
*
|
2016-02-04 00:23:14 -06:00
|
|
|
* @param Carbon $date
|
2016-01-26 19:54:04 -06:00
|
|
|
*
|
|
|
|
* @return Carbon date object
|
|
|
|
*/
|
2016-02-04 00:23:14 -06:00
|
|
|
public function startOfFiscalYear(Carbon $date);
|
2016-01-26 19:54:04 -06:00
|
|
|
|
|
|
|
}
|