| @@ 43-50 (lines=8) @@ | ||
| 40 | return true; |
|
| 41 | } |
|
| 42 | ||
| 43 | public static function matchesCurrencyCodes(RateInterface $rate, array $criteria) |
|
| 44 | { |
|
| 45 | if (isset($criteria['currencyCodes']) && !in_array($rate->getCurrencyCode(), $criteria['currencyCodes'])) { |
|
| 46 | return false; |
|
| 47 | } |
|
| 48 | ||
| 49 | return true; |
|
| 50 | } |
|
| 51 | ||
| 52 | public static function matchesDateFrom(RateInterface $rate, array $criteria) |
|
| 53 | { |
|
| @@ 88-95 (lines=8) @@ | ||
| 85 | return true; |
|
| 86 | } |
|
| 87 | ||
| 88 | public static function matchesRateTypes(RateInterface $rate, array $criteria) |
|
| 89 | { |
|
| 90 | if (isset($criteria['rateTypes']) && !in_array($rate->getRateType(), $criteria['rateTypes'])) { |
|
| 91 | return false; |
|
| 92 | } |
|
| 93 | ||
| 94 | return true; |
|
| 95 | } |
|
| 96 | ||
| 97 | public static function matchesSource(RateInterface $rate, array $criteria) |
|
| 98 | { |
|
| @@ 106-113 (lines=8) @@ | ||
| 103 | return true; |
|
| 104 | } |
|
| 105 | ||
| 106 | public static function matchesSources(RateInterface $rate, array $criteria) |
|
| 107 | { |
|
| 108 | if (isset($criteria['sources']) && !in_array($rate->getSourceName(), $criteria['sources'])) { |
|
| 109 | return false; |
|
| 110 | } |
|
| 111 | ||
| 112 | return true; |
|
| 113 | } |
|
| 114 | } |
|
| 115 | ||