CodeExplorer matchesOneOfTaxations example
public function __construct( protected string
$operator = self::OPERATOR_EQ,
protected array
$taxIds =
[] ) { parent::
__construct();
} public function match(RuleScope
$scope): bool
{ if ($scope instanceof LineItemScope
) { return $this->
matchesOneOfTaxations($scope->
getLineItem());
} if (!
$scope instanceof CartRuleScope
) { return false;
} foreach ($scope->
getCart()->
getLineItems()->
filterGoodsFlat() as $lineItem) { if ($this->
matchesOneOfTaxations($lineItem)) { return true;
} }