mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 00:20:03 +00:00
Update exceptions thrown for better IDE support.
This commit is contained in:
@@ -38,7 +38,7 @@ class Navigation
|
||||
*
|
||||
* @return \Carbon\Carbon
|
||||
*
|
||||
* @throws FireflyException
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function addPeriod(Carbon $theDate, string $repeatFreq, int $skip): Carbon
|
||||
{
|
||||
@@ -86,7 +86,7 @@ class Navigation
|
||||
* @param string $range
|
||||
*
|
||||
* @return array
|
||||
* @throws FireflyException
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function blockPeriods(\Carbon\Carbon $start, \Carbon\Carbon $end, string $range): array
|
||||
{
|
||||
@@ -148,7 +148,7 @@ class Navigation
|
||||
*
|
||||
* @return \Carbon\Carbon
|
||||
*
|
||||
* @throws FireflyException
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function endOfPeriod(\Carbon\Carbon $end, string $repeatFreq): Carbon
|
||||
{
|
||||
@@ -211,7 +211,7 @@ class Navigation
|
||||
* @param string $repeatFreq
|
||||
* @param \Carbon\Carbon|null $maxDate
|
||||
*
|
||||
* @return Carbon
|
||||
* @return \Carbon\Carbon
|
||||
*/
|
||||
public function endOfX(Carbon $theCurrentEnd, string $repeatFreq, ?Carbon $maxDate): Carbon
|
||||
{
|
||||
@@ -285,11 +285,11 @@ class Navigation
|
||||
|
||||
/**
|
||||
* @param \Carbon\Carbon $theDate
|
||||
* @param $repeatFrequency
|
||||
* @param string $repeatFrequency
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @throws FireflyException
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function periodShow(Carbon $theDate, string $repeatFrequency): string
|
||||
{
|
||||
@@ -444,7 +444,7 @@ class Navigation
|
||||
*
|
||||
* @return \Carbon\Carbon
|
||||
*
|
||||
* @throws FireflyException
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function startOfPeriod(Carbon $theDate, string $repeatFreq): Carbon
|
||||
{
|
||||
@@ -496,7 +496,7 @@ class Navigation
|
||||
*
|
||||
* @return \Carbon\Carbon
|
||||
*
|
||||
* @throws FireflyException
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function subtractPeriod(Carbon $theDate, string $repeatFreq, int $subtract = 1): Carbon
|
||||
{
|
||||
@@ -565,7 +565,7 @@ class Navigation
|
||||
*
|
||||
* @return \Carbon\Carbon
|
||||
*
|
||||
* @throws FireflyException
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function updateEndDate(string $range, Carbon $start): Carbon
|
||||
{
|
||||
@@ -604,7 +604,7 @@ class Navigation
|
||||
*
|
||||
* @return \Carbon\Carbon
|
||||
*
|
||||
* @throws FireflyException
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function updateStartDate(string $range, Carbon $start): Carbon
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user