SilverShop\Discounts\Extensions\Constraints\ItemDiscountConstraint::match
Checks that an item can be discounted for configured constraints.
If any constraint check fails, the entire function returns false;
Signature
Parameters
$item
— SilverShop\Model\OrderItem
$discount
— SilverShop\Discounts\Model\Discount
Returns
- bool