b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / dev2.destoffenstraat.com / vendor / magento / framework / Pricing /
Filename/home/dev2.destoffenstraat.com/vendor/magento/framework/Pricing/PriceCurrencyInterface.php
Size2.76 kb
Permissionrw-r--r--
Ownerroot : root
Create time17-Aug-2025 10:26
Last modified07-Jan-2021 21:08
Last accessed23-Aug-2025 03:56
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Framework\Pricing;

/**
* Interface PriceCurrencyInterface
*
* @api
* @since 100.0.2
*/
interface PriceCurrencyInterface
{
const DEFAULT_PRECISION = 2;

/**
* Convert price value
*
* @param float $amount
* @param null|string|bool|int|\Magento\Framework\App\ScopeInterface $scope
* @param \Magento\Framework\Model\AbstractModel|string|null $currency
* @return float
*/
public function convert($amount, $scope = null, $currency = null);

/**
* Convert and round price value
*
* @param float $amount
* @param null|string|bool|int|\Magento\Framework\App\ScopeInterface $scope
* @param \Magento\Framework\Model\AbstractModel|string|null $currency
* @param int $precision
* @return float
*/
public function convertAndRound($amount, $scope = null, $currency = null, $precision = self::DEFAULT_PRECISION);

/**
* Format price value
*
* @param float $amount
* @param bool $includeContainer
* @param int $precision
* @param null|string|bool|int|\Magento\Framework\App\ScopeInterface $scope
* @param \Magento\Framework\Model\AbstractModel|string|null $currency
* @return string
*/
public function format(
$amount,
$includeContainer = true,
$precision = self::DEFAULT_PRECISION,
$scope = null,
$currency = null
);

/**
* Convert and format price value
*
* @param float $amount
* @param bool $includeContainer
* @param int $precision
* @param null|string|bool|int|\Magento\Framework\App\ScopeInterface $scope
* @param \Magento\Framework\Model\AbstractModel|string|null $currency
* @return string
*/
public function convertAndFormat(
$amount,
$includeContainer = true,
$precision = self::DEFAULT_PRECISION,
$scope = null,
$currency = null
);

/**
* Round price
*
* @deprecated 102.0.1
* @param float $price
* @return float
*/
public function round($price);

/**
* Get currency model
*
* @param null|string|bool|int|\Magento\Framework\App\ScopeInterface $scope
* @param \Magento\Framework\Model\AbstractModel|string|null $currency
* @return \Magento\Framework\Model\AbstractModel
*/
public function getCurrency($scope = null, $currency = null);

/**
* Get currency symbol
*
* @param null|string|bool|int|\Magento\Framework\App\ScopeInterface $scope
* @param \Magento\Framework\Model\AbstractModel|string|null $currency
* @return string
*/
public function getCurrencySymbol($scope = null, $currency = null);
}