| @@ 113-120 (lines=8) @@ | ||
| 110 | /** |
|
| 111 | * {@inheritdoc} |
|
| 112 | */ |
|
| 113 | public function has($sourceName, $currencyCode, \DateTime $date = null, $rateType = RateType::MEDIAN) |
|
| 114 | { |
|
| 115 | if ($date === null) { |
|
| 116 | $date = new \DateTime('now'); |
|
| 117 | } |
|
| 118 | ||
| 119 | return array_key_exists($this->getRateKey($currencyCode, $date, $rateType, $sourceName), $this->rates); |
|
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| 123 | * {@inheritdoc} |
|
| @@ 70-77 (lines=8) @@ | ||
| 67 | /** |
|
| 68 | * {@inheritdoc} |
|
| 69 | */ |
|
| 70 | public function has($sourceName, $currencyCode, \DateTime $date = null, $rateType = RateType::MEDIAN) |
|
| 71 | { |
|
| 72 | if ($date === null) { |
|
| 73 | $date = new \DateTime('now'); |
|
| 74 | } |
|
| 75 | ||
| 76 | return array_key_exists($this->getRateKey($currencyCode, $date, $rateType, $sourceName), $this->rates); |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * {@inheritdoc} |
|