Chore: Add phpdocs

This commit is contained in:
James Cole
2023-07-04 13:29:19 +02:00
parent 7840e37e1a
commit 775504acb6
121 changed files with 471 additions and 84 deletions

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
/**
* Copyright (c) 2023 Antonio Spinelli <https://github.com/tonicospinelli>
*
@@ -23,8 +25,16 @@ namespace FireflyIII\Support\Calendar\Periodicity;
use Carbon\Carbon;
/**
* Class Monthly
*/
class Monthly extends Interval
{
/**
* @param Carbon $date
* @param int $interval
* @return Carbon
*/
public function nextDate(Carbon $date, int $interval = 1): Carbon
{
return ($date->clone())->addMonthsNoOverflow($this->skip($interval));