/** * Get product price model * * @param IsotopeProductCollection $objCollection * * @return \Isotope\Interfaces\IsotopePrice|ProductPrice */ public function getPrice(IsotopeProductCollection $objCollection = null) { if (null !== $objCollection && $objCollection !== Isotope::getCart()) { return ProductPrice::findByProductAndCollection($this, $objCollection); } elseif (false === $this->objPrice) { if (null === $objCollection) { $objCollection = Isotope::getCart(); } $this->objPrice = ProductPrice::findByProductAndCollection($this, $objCollection); } return $this->objPrice; }