You are here

public function Invoice::setCreatedTime in Commerce Invoice 8.2

Sets the invoice creation timestamp.

Parameters

int $timestamp: The invoice creation timestamp.

Return value

$this

Overrides InvoiceInterface::setCreatedTime

File

src/Entity/Invoice.php, line 516

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

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