63 if (isset($this->types[
$type][
'infoClass'])) {
64 $priceInfo = $this->types[
$type][
'infoClass'];
66 $priceInfo = $this->types[
'default'][
'infoClass'];
69 if (isset($this->types[
$type][
'prices'])) {
70 $priceCollection = $this->types[
$type][
'prices'];
72 $priceCollection = $this->types[
'default'][
'prices'];
76 $quantity = $saleableItem->
getQty();
81 $arguments[
'prices'] = $this->objectManager->create(
85 'quantity' => $quantity
89 return $this->objectManager->create($priceInfo,
$arguments);
__construct(array $types, ObjectManagerInterface $objectManager)
create(SaleableInterface $saleableItem, array $arguments=[])