/** * Class constructor. * * @param string $charset The output charset of the helper. * @param LocaleDetectorInterface $localeDetector A locale detector instance. * @param array $attributes The default attributes to apply to the \NumberFormatter instance. * @param array $textAttributes The default text attributes to apply to the \NumberFormatter instance. * @param array $symbols The default symbols to apply to the \NumberFormatter instance. */ public function __construct($charset, LocaleDetectorInterface $localeDetector, array $attributes = array(), array $textAttributes = array(), array $symbols = array()) { parent::__construct($charset, $localeDetector); $this->attributes = $attributes; $this->textAttributes = $textAttributes; $this->symbols = $symbols; }
/** * @param TimezoneDetectorInterface $timezoneDetector * @param string $charset * @param LocaleDetectorInterface $localeDetector */ public function __construct(TimezoneDetectorInterface $timezoneDetector, $charset, LocaleDetectorInterface $localeDetector) { parent::__construct($charset, $localeDetector); $this->timezoneDetector = $timezoneDetector; }