NumberFormatEvent.php in Price 8
Same filename and directory in other branches
Namespace
Drupal\price\EventFile
src/Event/NumberFormatEvent.phpView source
<?php
namespace Drupal\price\Event;
use Symfony\Component\EventDispatcher\Event;
/**
* Defines the number format event.
*
* @deprecated No longer fired, switch to NumberFormatDefinitionEvent.
*
* @see \Drupal\price\Event\PriceEvents
*/
class NumberFormatEvent extends Event {
/**
* The number format.
*
* @var object
*/
protected $numberFormat;
/**
* Constructs a new NumberFormatEvent.
*
* @param object $number_format
* The number format.
*/
public function __construct($number_format) {
$this->numberFormat = $number_format;
}
/**
* Gets the number format.
*
* @return object
* The number format.
*/
public function getNumberFormat() {
return $this->numberFormat;
}
}
Classes
Name | Description |
---|---|
NumberFormatEvent Deprecated | Defines the number format event. |