public function Invoice::setInvoiceDateTime in Commerce Invoice 8.2
Sets the invoice date timestamp.
Parameters
int $timestamp: The invoice date timestamp.
Return value
$this
Overrides InvoiceInterface::setInvoiceDateTime
1 call to Invoice::setInvoiceDateTime()
- Invoice::preSave in src/
Entity/ Invoice.php  - Acts on an entity before the presave hook is invoked.
 
File
- src/
Entity/ Invoice.php, line 531  
Class
- Invoice
 - Defines the invoice entity class.
 
Namespace
Drupal\commerce_invoice\EntityCode
public function setInvoiceDateTime($timestamp) {
  $this
    ->set('invoice_date', $timestamp);
  return $this;
}