You are here

Xaxis.php in Charts 8

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

File

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

namespace Drupal\charts_highcharts\Settings\Highcharts;

class Xaxis implements \JsonSerializable {
  private $categories = array();
  private $title;
  private $labels;

  /**
   * @return array
   */
  public function getCategories() {
    return $this->categories;
  }

  /**
   * @param array $categories
   */
  public function setCategories($categories) {
    $this->categories = $categories;
  }

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

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

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

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

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

}

Classes

Namesort descending Description
Xaxis