Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getUnitPriceAmount example
foreach
(
$this
->
getIterator
(
)
as
$price
)
{
$rules
=
$rules
->
merge
(
$price
->
getTaxRules
(
)
)
;
}
return
$rules
;
}
public
function
sum
(
)
: CalculatedPrice
{
return
new
CalculatedPrice
(
$this
->
getUnitPriceAmount
(
)
,
$this
->
getAmount
(
)
,
$this
->
getCalculatedTaxes
(
)
,
$this
->
getTaxRules
(
)
)
;
}
public
function
getCalculatedTaxes
(
)
: CalculatedTaxCollection
{
$taxes
=
new
CalculatedTaxCollection
(
[
]
)
;
foreach
(
$this
->
getIterator
(
)
as
$price
)
{