/** * Find surcharges for the current collection * @return \Isotope\Model\ProductCollectionSurcharge[] */ public function getSurcharges() { if (null === $this->arrSurcharges) { if ($this->isLocked()) { $this->arrSurcharges = array(); if (($objSurcharges = ProductCollectionSurcharge::findBy('pid', $this->id)) !== null) { $this->arrSurcharges = $objSurcharges->getModels(); } } else { $this->arrSurcharges = ProductCollectionSurcharge::findForCollection($this); } } return $this->arrSurcharges; }