43 $total = $this->totalFactory->create()->setData($total);
45 foreach ($this->collectorList->getCollectors(
$quote->getStoreId()) as $reader) {
52 if (is_array($totalInstance)) {
53 foreach ($totalInstance as
$item) {
69 if ($total instanceof
Total) {
73 if (count(array_column($total,
'code')) > 0) {
75 foreach ($total as
$item) {
76 $totals[] = $this->totalFactory->create()->setData(
$item);
81 return $this->totalFactory->create()->setData($total);
91 if (array_key_exists($totalInstance->getCode(),
$output)) {
92 $output[$totalInstance->getCode()] =
$output[$totalInstance->getCode()]->addData(
96 $output[$totalInstance->getCode()] = $totalInstance;
merge(Total $totalInstance, $output)
getData($key='', $index=null)
__construct(\Magento\Quote\Model\Quote\Address\TotalFactory $totalFactory, \Magento\Quote\Model\Quote\TotalsCollectorList $collectorList)