You are here

public function Payment::setCompletedTime in Commerce Core 8.2

Sets the payment completed timestamp.

Parameters

int $timestamp: The payment completed timestamp.

Return value

$this

Overrides PaymentInterface::setCompletedTime

1 call to Payment::setCompletedTime()
Payment::preSave in modules/payment/src/Entity/Payment.php
Acts on an entity before the presave hook is invoked.

File

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

Class

Payment
Defines the payment entity class.

Namespace

Drupal\commerce_payment\Entity

Code

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