You are here

public function Unlimited::calculateEnd in Recurring Time Period 8

Calculates the end date and time for the period.

Parameters

\DateTimeImmutable $start: The date and time to begin the period from.

Return value

\DateTimeImmutable|int The expiry date and time, or RecurringPeriodInterface::UNLIMITED.

Overrides RecurringPeriodBase::calculateEnd

File

src/Plugin/RecurringPeriod/Unlimited.php, line 47

Class

Unlimited
Provides a period that never ends.

Namespace

Drupal\recurring_period\Plugin\RecurringPeriod

Code

public function calculateEnd(\DateTimeImmutable $start) {
  return self::UNLIMITED;
}