You are here

NumberFormatEvent.php in Price 3.0.x

Same filename and directory in other branches
  1. 8 src/Event/NumberFormatEvent.php
  2. 3.x src/Event/NumberFormatEvent.php

Namespace

Drupal\price\Event

File

src/Event/NumberFormatEvent.php
View 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

Namesort descending Description
NumberFormatEvent Deprecated Defines the number format event.