/** * @return array */ public function getTotalTaxes() { $taxes = $this->getSubtotalTaxes(); if ($this->payment) { $tax = $this->payment->getTax(); $taxes[$this->payment->getTaxClass()->getId()] += $tax; } if ($this->shipping) { $tax = $this->shipping->getTax(); $taxes[$this->shipping->getTaxClass()->getId()] += $tax; } if ($this->specials) { foreach ($this->specials as $special) { $tax = $special->getTax(); $taxes[$special->getTaxClass()->getId()] += $tax; } } return $taxes; }