You are here

PlotOptions.php in Charts 8.3

Same filename and directory in other branches
  1. 8 modules/charts_highcharts/src/Settings/Highcharts/PlotOptions.php

File

modules/charts_highcharts/src/Settings/Highcharts/PlotOptions.php
View source
<?php

namespace Drupal\charts_highcharts\Settings\Highcharts;


/**
 * Plot Options.
 */
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;
  }

}

Classes

Namesort descending Description
PlotOptions Plot Options.