Skip to content

Commit 819015c

Browse files
author
Yu Tang
committed
MAGETWO-30415: [GITHUB] \Magento\Framework\Pricing\PriceCurrencyInterface depends on Magento application code #682
1 parent c164648 commit 819015c

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

app/code/Magento/Directory/Model/PriceCurrency.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,7 @@ public function convert($amount, $scope = null, $currency = null)
5757
}
5858

5959
/**
60-
* Convert and round price value for specified store or passed currency
61-
*
62-
* @param float $amount
63-
* @param null|string|bool|int|\Magento\Store\Model\Store $store
64-
* @param Currency|string|null $currency
65-
* @param int $precision
66-
* @return float
60+
* {@inheritdoc}
6761
*/
6862
public function convertAndRound($amount, $store = null, $currency = null, $precision = self::DEFAULT_PRECISION)
6963
{

lib/internal/Magento/Framework/Pricing/PriceCurrencyInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ public function convert($amount, $scope = null, $currency = null);
2929
* Convert and round price value
3030
*
3131
* @param float $amount
32-
* @param null|string|bool|int|\Magento\Store\Model\Store $store
33-
* @param \Magento\Directory\Model\Currency|string|null $currency
32+
* @param null|string|bool|int|\Magento\Framework\App\ScopeInterface $scope
33+
* @param \Magento\Framework\Model\AbstractModel|string|null $currency
3434
* @param int $precision
3535
* @return float
3636
*/
37-
public function convertAndRound($amount, $store = null, $currency = null, $precision = self::DEFAULT_PRECISION);
37+
public function convertAndRound($amount, $scope = null, $currency = null, $precision = self::DEFAULT_PRECISION);
3838

3939
/**
4040
* Format price value

0 commit comments

Comments
 (0)