Adapter/PlentymarketsAdapter/ResponseParser/Order/OrderResponseParser.php
private function getOrderItems(array $entry)
    {
        $result = [];

        foreach ($entry['orderItems'] as $item) {
            $number = $this->getNumberFromVariation($item['itemVariationId']);

            $orderItem = new OrderItem();
            $orderItem->setQuantity((float) $item['quantity']);
            $orderItem->setName($item['orderItemName']);
            $orderItem->setNumber($number);
            $orderItem->setPrice($this->getOrderItemPrice($item));
            $orderItem->setAttributes([]);

            $result[] = $orderItem;
        }

        return $result;
    }
private function getOrderItems(array $entry)
    {
        $result = [];

        foreach ($entry['orderItems'] as $item) {
            $number = $this->getNumberFromVariation($item['itemVariationId']);

            $orderItem = new OrderItem();
            $orderItem->setQuantity((float) $item['quantity']);
            $orderItem->setName($item['orderItemName']);
            $orderItem->setNumber($number);
            $orderItem->setPrice($this->getOrderItemPrice($item));
            $orderItem->setAttributes([]);

            $result[] = $orderItem;
        }

        return $result;
    }
@param array $entry

@return OrderItem[]