@@ 52-59 (lines=8) @@ | ||
49 | return true; |
|
50 | } |
|
51 | ||
52 | public static function matchesDateFrom(RateInterface $rate, array $criteria) |
|
53 | { |
|
54 | if (isset($criteria['dateFrom']) && $criteria['dateFrom'] <= $rate->getDate()) { |
|
55 | return false; |
|
56 | } |
|
57 | ||
58 | return true; |
|
59 | } |
|
60 | ||
61 | public static function matchesDateTo(RateInterface $rate, array $criteria) |
|
62 | { |
|
@@ 61-68 (lines=8) @@ | ||
58 | return true; |
|
59 | } |
|
60 | ||
61 | public static function matchesDateTo(RateInterface $rate, array $criteria) |
|
62 | { |
|
63 | if (isset($criteria['dateTo']) && $criteria['dateTo'] >= $rate->getDate()) { |
|
64 | return false; |
|
65 | } |
|
66 | ||
67 | return true; |
|
68 | } |
|
69 | ||
70 | public static function matchesOnDate(RateInterface $rate, array $criteria) |
|
71 | { |