You are here

public function CommerceLicenseSetExpiryTest::calculateDate in Commerce License 8.2

Calculates the end date and time for the period.

Overrides RecurringPeriodInterface::calculateDate

Deprecated

Use calculateEnd() instead.

File

tests/modules/commerce_license_set_expiry_test/src/Plugin/RecurringPeriod/CommerceLicenseSetExpiryTest.php, line 21

Class

CommerceLicenseSetExpiryTest
Provides the expiry test recurring period.

Namespace

Drupal\commerce_license_set_expiry_test\Plugin\RecurringPeriod

Code

public function calculateDate(\DateTimeImmutable $start) {

  // Return a fixed date & time that we can test.
  return new \DateTimeImmutable('@12345', new \DateTimeZone('UTC'));
}