@@ 57-64 (lines=8) @@ | ||
54 | /** |
|
55 | * {@inheritdoc} |
|
56 | */ |
|
57 | public function has($currencyCode, $date = null, $rateType = 'default') |
|
58 | { |
|
59 | if (!CurrencyCode::exists($currencyCode)) { |
|
60 | throw new UnknownCurrencyCodeException(sprintf('Unknown currency code "%s".', $currencyCode)); |
|
61 | } |
|
62 | ||
63 | return $this->repository->has($currencyCode, $date, $rateType); |
|
64 | } |
|
65 | ||
66 | /** |
|
67 | * {@inheritdoc} |
|
@@ 69-76 (lines=8) @@ | ||
66 | /** |
|
67 | * {@inheritdoc} |
|
68 | */ |
|
69 | public function get($currencyCode, $date = null, $rateType = 'default') |
|
70 | { |
|
71 | if (!CurrencyCode::exists($currencyCode)) { |
|
72 | throw new UnknownCurrencyCodeException(sprintf('Unknown currency code "%s".', $currencyCode)); |
|
73 | } |
|
74 | ||
75 | return $this->repository->get($currencyCode, $date, $rateType); |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * {@inheritdoc} |
|
@@ 81-88 (lines=8) @@ | ||
78 | /** |
|
79 | * {@inheritdoc} |
|
80 | */ |
|
81 | public function latest($currencyCode, $rateType = 'default') |
|
82 | { |
|
83 | if (!CurrencyCode::exists($currencyCode)) { |
|
84 | throw new UnknownCurrencyCodeException(sprintf('Unknown currency code "%s".', $currencyCode)); |
|
85 | } |
|
86 | ||
87 | return $this->repository->latest($currencyCode, $rateType); |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * {@inheritdoc} |