PHP Class Sonata\Component\Currency\CurrencyDetector

Author: Hugo Briand ([email protected])
Inheritance: implements Sonata\Component\Currency\CurrencyDetectorInterface
显示文件 Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Property Type Description
$currency Sonata\Component\Currency\CurrencyInterface

Public Methods

Method Description
__construct ( string $currencyLabel, Sonata\Component\Currency\CurrencyManagerInterface $currencyManager ) Constructs the currency detector service by finding the default currency.
getCurrency ( )

Method Details

__construct() public method

Constructs the currency detector service by finding the default currency.
public __construct ( string $currencyLabel, Sonata\Component\Currency\CurrencyManagerInterface $currencyManager )
$currencyLabel string
$currencyManager Sonata\Component\Currency\CurrencyManagerInterface

getCurrency() public method

public getCurrency ( )

Property Details

$currency protected_oe property

protected CurrencyInterface,Sonata\Component\Currency $currency
return Sonata\Component\Currency\CurrencyInterface