You are here

public function RecurringPeriodInterface::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.

1 method overrides RecurringPeriodInterface::calculateEnd()
RecurringPeriodBase::calculateEnd in src/Plugin/RecurringPeriod/RecurringPeriodBase.php
Calculates the end date and time for the period.

File

src/Plugin/RecurringPeriod/RecurringPeriodInterface.php, line 87

Class

RecurringPeriodInterface
Defines an interface for recurring period plugins.

Namespace

Drupal\recurring_period\Plugin\RecurringPeriod

Code

public function calculateEnd(\DateTimeImmutable $start);