You are here

class Tooltip in Charts 8.3

Same name and namespace in other branches
  1. 8 modules/charts_highcharts/src/Settings/Highcharts/Tooltip.php \Drupal\charts_highcharts\Settings\Highcharts\Tooltip

Tooltip.

Hierarchy

  • class \Drupal\charts_highcharts\Settings\Highcharts\Tooltip implements \Drupal\charts_highcharts\Settings\Highcharts\JsonSerializable

Expanded class hierarchy of Tooltip

1 file declares its use of Tooltip
Highcharts.php in modules/charts_highcharts/src/Plugin/chart/Highcharts.php

File

modules/charts_highcharts/src/Settings/Highcharts/Tooltip.php, line 8

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class Tooltip implements \JsonSerializable {
  private $valueSuffix = '';
  private $enabled = FALSE;

  /**
   * Get Value Suffix.
   *
   * @return string
   *   Value Suffix.
   */
  public function getValueSuffix() {
    return $this->valueSuffix;
  }

  /**
   * Set Value Suffix.
   *
   * @param string $valueSuffix
   *   Value Suffix.
   */
  public function setValueSuffix($valueSuffix) {
    $this->valueSuffix = $valueSuffix;
  }

  /**
   * Get Enabled.
   *
   * @return bool
   *   Enabled.
   */
  public function getEnabled() {
    return $this->enabled;
  }

  /**
   * Set Enabled.
   *
   * @param bool $enabled
   *   Enabled.
   */
  public function setEnabled($enabled) {
    $this->enabled = $enabled;
  }

  /**
   * Json Serialize.
   *
   * @return array
   *   Json Serialize.
   */
  public function jsonSerialize() {
    $vars = get_object_vars($this);
    return $vars;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Tooltip::$enabled private property
Tooltip::$valueSuffix private property
Tooltip::getEnabled public function Get Enabled.
Tooltip::getValueSuffix public function Get Value Suffix.
Tooltip::jsonSerialize public function Json Serialize.
Tooltip::setEnabled public function Set Enabled.
Tooltip::setValueSuffix public function Set Value Suffix.