SilverShop\Discounts\Model\Discount::get_matching
Get the smallest possible list of discounts that can apply to a given order.
Signature
public function get_matching(Order
$order,
[array
$context = ] )
Parameters
$order
— SilverShop\Model\Order- order to check against
$context
— array
Returns
- ArrayList
- matching discounts