Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PriceCurrencyInterface.php
Go to the documentation of this file.
1 <?php
8 
16 {
20  const DEFAULT_PRECISION = 2;
21 
30  public function convert($amount, $scope = null, $currency = null);
31 
41  public function convertAndRound($amount, $scope = null, $currency = null, $precision = self::DEFAULT_PRECISION);
42 
53  public function format(
54  $amount,
55  $includeContainer = true,
56  $precision = self::DEFAULT_PRECISION,
57  $scope = null,
58  $currency = null
59  );
60 
71  public function convertAndFormat(
72  $amount,
73  $includeContainer = true,
74  $precision = self::DEFAULT_PRECISION,
75  $scope = null,
76  $currency = null
77  );
78 
85  public function round($price);
86 
94  public function getCurrency($scope = null, $currency = null);
95 
101  public function getCurrencySymbol($scope = null, $currency = null);
102 }
format( $amount, $includeContainer=true, $precision=self::DEFAULT_PRECISION, $scope=null, $currency=null)
getCurrency($scope=null, $currency=null)
$price
convertAndFormat( $amount, $includeContainer=true, $precision=self::DEFAULT_PRECISION, $scope=null, $currency=null)
$amount
Definition: order.php:14
getCurrencySymbol($scope=null, $currency=null)
convertAndRound($amount, $scope=null, $currency=null, $precision=self::DEFAULT_PRECISION)
convert($amount, $scope=null, $currency=null)