You are here

class PlotBands in Charts 8.3

PlotBands for gauge charts.

Hierarchy

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

Expanded class hierarchy of PlotBands

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

File

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

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class PlotBands implements \JsonSerializable {
  private $from;
  private $to;
  private $color;

  /**
   * @return mixed
   */
  public function getFrom() {
    return $this->from;
  }

  /**
   * @param mixed $from
   */
  public function setFrom($from) {
    $this->from = $from;
  }

  /**
   * @return mixed
   */
  public function getTo() {
    return $this->to;
  }

  /**
   * @param mixed $to
   */
  public function setTo($to) {
    $this->to = $to;
  }

  /**
   * @return string
   */
  public function getColor() {
    return $this->color;
  }

  /**
   * @param string $color
   */
  public function setColor($color) {
    $this->color = $color;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
PlotBands::$color private property
PlotBands::$from private property
PlotBands::$to private property
PlotBands::getColor public function
PlotBands::getFrom public function
PlotBands::getTo public function
PlotBands::jsonSerialize public function Json Serialize.
PlotBands::setColor public function
PlotBands::setFrom public function
PlotBands::setTo public function