You are here

public function Payment::getAuthorizedTime in Commerce Core 8.2

Gets the payment authorization timestamp.

Return value

int The payment authorization timestamp.

Overrides PaymentInterface::getAuthorizedTime

1 call to Payment::getAuthorizedTime()
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 260

Class

Payment
Defines the payment entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public function getAuthorizedTime() {
  return $this
    ->get('authorized')->value;
}