Class OrderItemRepository
category |
System |
---|---|
package |
Order |
subpackage |
Repositories |
__construct(\OrderItemAttributeRepositoryFactoryInterface $orderItemAttributeRepositoryFactory, \OrderItemRepositoryReaderInterface $orderItemRepositoryReader, \OrderItemRepositoryWriterInterface $orderItemRepositoryWriter, \OrderItemRepositoryDeleterInterface $orderItemRepositoryDeleter, \AddonValueServiceInterface $addonValueService)
\OrderItemAttributeRepositoryFactoryInterface
Factory to create order item attribute repositories.
\OrderItemRepositoryDeleterInterface
Db deleter for order item repository.
_delegateToAttributeRepositories(\OrderItemInterface $orderItem, integer|null $storedOrderItemId = null) : $this
integer|null
(Optional) Id of order item. When not set, its get by stored order item.
$this
Same instance to make chained method calls possible.
addToOrder(\IdType $orderId, \OrderItemInterface $orderItem) : integer
integer
ID of the StoredOrderItem
deleteItemById(\IdType $orderItemId) : \OrderItemRepository
deleteItemsByOrderId(\IdType $orderId) : \OrderItemRepository
getItemById(\IdType $orderItemId) : \StoredOrderItemInterface
getItemsByOrderId(\IdType $orderId) : \StoredOrderItemCollection
store(\StoredOrderItemInterface $storedOrderItem) : \OrderItemRepository
orderItemAttributeRepositoryFactory : \OrderItemAttributeRepositoryFactoryInterface
orderItemRepositoryReader : \OrderItemRepositoryReaderInterface
orderItemRepositoryWriter : \OrderItemRepositoryWriterInterface
orderItemRepositoryDeleter : \OrderItemRepositoryDeleterInterface
addonValueService : \AddonValueServiceInterface