Skip to content

Commit abc7bc6

Browse files
committed
Resolved issue #9243:
- Removed Magento\Framework\Locale\CurrencyInterface from setService method and changed it to \Zend_Currency_CurrencyInterface which must be provider to this function. - Changed return type to \Zend_Currency_CurrencyInterface, the given instance of the service is returned by the setService function - Removed \Zend_Service from getService method and changed it to \Zend_Currency_CurrencyInterface - Added @deprecated tags to both methods and added @see annotation to the methods. Referenced corresponding interface \Magento\Directory\Model\Currency\Import\ImportInterface
1 parent e738316 commit abc7bc6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/internal/Magento/Framework/CurrencyInterface.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,19 @@ public function isLess($value, $currency = null);
239239
/**
240240
* Returns the set service class
241241
*
242-
* @return \Zend_Service
242+
* @return \Zend_Currency_CurrencyInterface
243+
* @deprecated
244+
* @see \Magento\Directory\Model\Currency\Import\ImportInterface
243245
*/
244246
public function getService();
245247

246248
/**
247249
* Sets a new exchange service
248250
*
249-
* @param string|\Magento\Framework\Locale\CurrencyInterface $service Service class
250-
* @return \Magento\Framework\CurrencyInterface
251+
* @param string|\Zend_Currency_CurrencyInterface $service Service class
252+
* @return \Zend_Currency_CurrencyInterface
253+
* @deprecated
254+
* @see \Magento\Directory\Model\Currency\Import\ImportInterface
251255
*/
252256
public function setService($service);
253257
}

0 commit comments

Comments
 (0)