PHP Class Sonata\Component\Currency\CurrencyDetector

Author: Hugo Briand ([email protected])
Inheritance: implements Sonata\Component\Currency\CurrencyDetectorInterface
Afficher le fichier Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Свойство Type Description
$currency Sonata\Component\Currency\CurrencyInterface

Méthodes publiques

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

Method Details

__construct() public méthode

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 méthode

public getCurrency ( )

Property Details

$currency protected_oe property

protected CurrencyInterface,Sonata\Component\Currency $currency
Résultat Sonata\Component\Currency\CurrencyInterface