PHP Class WellCommerce\Bundle\CurrencyBundle\Formatter\CurrencyFormatter

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\CurrencyBundle\Formatter\CurrencyFormatterInterface
Datei anzeigen Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$forcedLocale null | string
$requestHelper WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface

Public Methods

Method Description
__construct ( WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface $requestHelper, null $forcedLocale = null ) CurrencyFormatter constructor.
format ( $amount, $currency = null, $locale = null )

Private Methods

Method Description
getLocale ( string $locale = null ) : string

Method Details

__construct() public method

CurrencyFormatter constructor.
public __construct ( WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface $requestHelper, null $forcedLocale = null )
$requestHelper WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface
$forcedLocale null

format() public method

public format ( $amount, $currency = null, $locale = null )

Property Details

$forcedLocale protected_oe property

protected null|string $forcedLocale
return null | string

$requestHelper protected_oe property

protected RequestHelperInterface,WellCommerce\Bundle\CoreBundle\Helper\Request $requestHelper
return WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface