You are here

public function Invoice::getCreatedTime in Commerce Invoice 8.2

Gets the invoice creation timestamp.

Return value

int Creation timestamp of the invoice.

Overrides InvoiceInterface::getCreatedTime

File

src/Entity/Invoice.php, line 509

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}