SilverShop\Discounts\Extensions\Constraints\ItemDiscountConstraint::itemMatchesCriteria
Returns true if the given item sits within this constraint.
If there is no constraint set, then it should return true.
Signature
Parameters
$item
— SilverShop\Model\OrderItem
$discount
— SilverShop\Discounts\Model\Discount
Returns
- boolean