| 1 | <?php |
||
| 22 | final class CurrencyContext implements Context |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var CurrencyNameConverterInterface |
||
| 26 | */ |
||
| 27 | private $currencyNameConverter; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var RepositoryInterface |
||
| 31 | */ |
||
| 32 | private $currencyRepository; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param CurrencyNameConverterInterface $currencyNameConverter |
||
| 36 | * @param RepositoryInterface $currencyRepository |
||
| 37 | */ |
||
| 38 | public function __construct( |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @Transform :currency |
||
| 48 | */ |
||
| 49 | public function getCurrencyByName($currencyName) |
||
| 60 | } |
||
| 61 |