You are here

public function OrderItem::getCreatedTime in Commerce Core 8.2

Gets the order item creation timestamp.

Return value

int The order item creation timestamp.

Overrides OrderItemInterface::getCreatedTime

File

modules/order/src/Entity/OrderItem.php, line 335

Class

OrderItem
Defines the order item entity class.

Namespace

Drupal\commerce_order\Entity

Code

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