1 | <?php |
||
23 | final class ChannelAwareCurrencyContext implements CurrencyContextInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var CurrencyContextInterface |
||
27 | */ |
||
28 | private $currencyContext; |
||
29 | |||
30 | /** |
||
31 | * @var ChannelContextInterface |
||
32 | */ |
||
33 | private $channelContext; |
||
34 | |||
35 | /** |
||
36 | * @param CurrencyContextInterface $currencyContext |
||
37 | * @param ChannelContextInterface $channelContext |
||
38 | */ |
||
39 | public function __construct(CurrencyContextInterface $currencyContext, ChannelContextInterface$channelContext) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function getCurrencyCode() |
||
65 | |||
66 | /** |
||
67 | * @param string $currencyCode |
||
68 | * @param ChannelInterface $channel |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | private function isAvailableCurrency($currencyCode, ChannelInterface $channel) |
||
83 | } |
||
84 |