You are here

public function PaymentMethod::getExpiresTime in Commerce Core 8.2

Gets the payment method expiration timestamp.

Return value

int The payment method expiration timestamp.

Overrides PaymentMethodInterface::getExpiresTime

1 call to PaymentMethod::getExpiresTime()
PaymentMethod::isExpired in modules/payment/src/Entity/PaymentMethod.php
Gets whether the payment method has expired.

File

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

Class

PaymentMethod
Defines the payment method entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public function getExpiresTime() {
  return $this
    ->get('expires')->value;
}