1 | <?php |
||
19 | class ExchangeRate implements ExchangeRateInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var mixed |
||
23 | */ |
||
24 | protected $id; |
||
25 | |||
26 | /** |
||
27 | * @var float |
||
28 | */ |
||
29 | protected $ratio; |
||
30 | |||
31 | /** |
||
32 | * @var CurrencyInterface |
||
33 | */ |
||
34 | protected $sourceCurrency; |
||
35 | |||
36 | /** |
||
37 | * @var CurrencyInterface |
||
38 | */ |
||
39 | protected $targetCurrency; |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function getId() |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getRatio() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | * |
||
60 | * @throws \InvalidArgumentException |
||
61 | */ |
||
62 | public function setRatio($ratio) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function getSourceCurrency() |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function setSourceCurrency(CurrencyInterface $currency) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function getTargetCurrency() |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function setTargetCurrency(CurrencyInterface $currency) |
||
100 | } |
||
101 |