msrpData = $msrpData; $this->config = $config; } /** * Returns whether the MSRP should be shown on gesture * * @return bool */ public function isShowPriceOnGesture() { return $this->msrpData->isShowPriceOnGesture($this->product); } /** * Get Msrp message for price * * @return string */ public function getMsrpPriceMessage() { return $this->msrpData->getMsrpPriceMessage($this->product); } /** * Check if Minimum Advertised Price is enabled * * @return bool */ public function isMsrpEnabled() { return $this->config->isEnabled(); } /** * Check if can apply Minimum Advertise price to product * * @param Product $product * @return bool */ public function canApplyMsrp(Product $product) { return $this->msrpData->canApplyMsrp($product); } /** * @param Product $product * @return bool|float */ public function isMinimalPriceLessMsrp(Product $product) { return $this->msrpData->isMinimalPriceLessMsrp($product); } }