You are here

class ChartjsScales in Charts 8.3

Class ChartjsScales.

@package Drupal\charts_chartjs\Settings\Chartjs

Hierarchy

  • class \Drupal\charts_chartjs\Settings\Chartjs\ChartjsScales implements \Drupal\charts_chartjs\Settings\Chartjs\JsonSerializable

Expanded class hierarchy of ChartjsScales

1 file declares its use of ChartjsScales
Chartjs.php in modules/charts_chartjs/src/Plugin/chart/Chartjs.php

File

modules/charts_chartjs/src/Settings/Chartjs/ChartjsScales.php, line 10

Namespace

Drupal\charts_chartjs\Settings\Chartjs
View source
class ChartjsScales implements \JsonSerializable {

  /**
   * xAxes array.
   *
   * @var mixed
   */
  private $xAxes;

  /**
   * yAxes array.
   *
   * @var mixed
   */
  private $yAxes;

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

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

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
ChartjsScales::$xAxes private property xAxes array.
ChartjsScales::$yAxes private property yAxes array.
ChartjsScales::getXAxes public function
ChartjsScales::getYAxes public function
ChartjsScales::jsonSerialize public function Json Serialize.
ChartjsScales::setXAxes public function
ChartjsScales::setYAxes public function