public function Shipment::setCreatedTime in Commerce Shipping 8.2
Sets the shipment creation timestamp.
Parameters
int $timestamp: The shipment creation timestamp.
Return value
$this
Overrides ShipmentInterface::setCreatedTime
File
- src/
Entity/ Shipment.php, line 474
Class
- Shipment
- Defines the shipment entity class.
Namespace
Drupal\commerce_shipping\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}