code: 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)
              ;
      }
docs: Check if rate matches filters.
  
  @param RateInterface $rate Rate to filter.
  @param array $criteria Filter criteria.
  @return bool TRUE if filter criteria is matched.