Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Msrp.php
Go to the documentation of this file.
1 <?php
7 
11 class Msrp
12 {
16  protected $canApplyMsrpData = [];
17 
23  public function setCanApplyMsrp($quoteId, $canApply)
24  {
25  $this->canApplyMsrpData[$quoteId] = (bool)$canApply;
26  return $this;
27  }
28 
34  public function getCanApplyMsrp($quoteId)
35  {
36  if (isset($this->canApplyMsrpData[$quoteId])) {
37  return (bool)$this->canApplyMsrpData[$quoteId];
38  }
39  return false;
40  }
41 }
setCanApplyMsrp($quoteId, $canApply)
Definition: Msrp.php:23