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