Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getRemovable example
$index
[
$lineItem
->
getParentId
(
)
]
->
addChild
(
$currentLineItem
)
;
}
return
$root
;
}
private
static
function
updateLineItem
(
LineItem
$lineItem
, OrderLineItemEntity
$entity
, string
$id
)
: void
{
$lineItem
->
setId
(
$entity
->
getIdentifier
(
)
)
->
setLabel
(
$entity
->
getLabel
(
)
)
->
setGood
(
$entity
->
getGood
(
)
)
->
setRemovable
(
$entity
->
getRemovable
(
)
)
->
setStackable
(
$entity
->
getStackable
(
)
)
->
setStates
(
$entity
->
getStates
(
)
)
->
addExtension
(
OrderConverter::ORIGINAL_ID,
new
IdStruct
(
$id
)
)
;
if
(
$entity
->
getPayload
(
)
!== null
)
{
$lineItem
->
setPayload
(
$entity
->
getPayload
(
)
)
;
}
if
(
$entity
->
getPrice
(
)
!== null
)
{
$lineItem
->
setPrice
(
$entity
->
getPrice
(
)
)
;
}