You are here

class PlotOptions in Charts 8.3

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

Plot Options.

Hierarchy

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

Expanded class hierarchy of PlotOptions

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

File

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

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class PlotOptions implements \JsonSerializable {

  /**
   * Get Plot Options.
   *
   * @return mixed
   *   Plot Options.
   */
  public function getPlotOptions() {
    return $this->{$type};
  }

  /**
   * Set Plot Options.
   *
   * @param mixed $plotOptions
   *   Plot Options.
   */
  public function setPlotOptions($typeOptions, $plotOptions) {
    $type = $typeOptions;
    $this->{$type} = $plotOptions;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
PlotOptions::getPlotOptions public function Get Plot Options.
PlotOptions::jsonSerialize public function Json Serialize.
PlotOptions::setPlotOptions public function Set Plot Options.