You are here

public function Payment::setExpiresTime in Commerce Core 8.2

Sets the payment expiration timestamp.

Parameters

int $timestamp: The payment expiration timestamp.

Return value

$this

Overrides PaymentInterface::setExpiresTime

File

modules/payment/src/Entity/Payment.php, line 290

Class

Payment
Defines the payment entity class.

Namespace

Drupal\commerce_payment\Entity

Code

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