11 use Magento\Tax\Model\Calculation\RuleFactory as TaxRuleModelFactory;
    18     private $taxRuleModelFactory;
    23     private $registry = [];
    31         TaxRuleModelFactory $taxRuleModelFactory
    33         $this->taxRuleModelFactory = $taxRuleModelFactory;
    44         $this->registry[$taxRuleModel->getId()] = $taxRuleModel;
    56         if (isset($this->registry[$taxRuleId])) {
    57             return $this->registry[$taxRuleId];
    59         $taxRuleModel = $this->taxRuleModelFactory->create()->load($taxRuleId);
    60         if (!$taxRuleModel->getId()) {
    64         $this->registry[$taxRuleModel->getId()] = $taxRuleModel;
    76         unset($this->registry[$taxRuleId]);
 
__construct(TaxRuleModelFactory $taxRuleModelFactory)
 
static singleField($fieldName, $fieldValue)
 
registerTaxRule(TaxRuleModel $taxRuleModel)
 
removeTaxRule($taxRuleId)
 
retrieveTaxRule($taxRuleId)