src/RunOpenCode/ExchangeRate/Utils/RateFilterUtil.php
public static function matches(RateInterface $rate, array $criteria)
    {
        return
            self::matchesArrayCriteria('currencyCode', $rate, $criteria)
            &&
            self::matchesArrayCriteria('sourceName', $rate, $criteria)
            &&
            self::matchesArrayCriteria('rateType', $rate, $criteria)
            &&
            self::matchesDateCriteria('onDate', $rate, $criteria)
            &&
            self::matchesDateCriteria('dateFrom', $rate, $criteria)
            &&
            self::matchesDateCriteria('dateTo', $rate, $criteria)
            ;
    }
public static function matches(RateInterface $rate, array $criteria)
    {
        return
            self::matchesArrayCriteria('currencyCode', $rate, $criteria)
            &&
            self::matchesArrayCriteria('sourceName', $rate, $criteria)
            &&
            self::matchesArrayCriteria('rateType', $rate, $criteria)
            &&
            self::matchesDateCriteria('onDate', $rate, $criteria)
            &&
            self::matchesDateCriteria('dateFrom', $rate, $criteria)
            &&
            self::matchesDateCriteria('dateTo', $rate, $criteria)
            ;
    }
public static function matches ( RateInterface $ rate , array $ criteria ) { return self :: matchesArrayCriteria ( 'currencyCode' , $ rate , $ criteria ) && self :: matchesArrayCriteria ( 'sourceName' , $ rate , $ criteria ) && self :: matchesArrayCriteria ( 'rateType' , $ rate , $ criteria ) && self :: matchesDateCriteria ( 'onDate' , $ rate , $ criteria ) && self :: matchesDateCriteria ( 'dateFrom' , $ rate , $ criteria ) && self :: matchesDateCriteria ( 'dateTo' , $ rate , $ criteria ) ; }
Check if rate matches filters.

@param RateInterface $rate Rate to filter.
@param array $criteria Filter criteria.
@return bool TRUE if filter criteria is matched.
Check if rate matches filters .