You are here

public function PaymentMethod::setExpiresTime in Commerce Core 8.2

Sets the payment method expiration timestamp.

Parameters

int $timestamp: The payment method expiration timestamp.

Return value

$this

Overrides PaymentMethodInterface::setExpiresTime

File

modules/payment/src/Entity/PaymentMethod.php, line 191

Class

PaymentMethod
Defines the payment method entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public function setExpiresTime($timestamp) {
  $this
    ->set('expires', $timestamp);
  return $this;
}