You are here

class Xaxis in Charts 8

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

Hierarchy

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

Expanded class hierarchy of Xaxis

1 file declares its use of Xaxis
charts_highcharts.module in modules/charts_highcharts/charts_highcharts.module
Charts module integration with Highcharts library.

File

modules/charts_highcharts/src/Settings/Highcharts/Xaxis.php, line 5

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Xaxis::$categories private property
Xaxis::$labels private property
Xaxis::$title private property
Xaxis::getCategories public function
Xaxis::getLabels public function
Xaxis::getTitle public function
Xaxis::jsonSerialize public function
Xaxis::setCategories public function
Xaxis::setLabels public function
Xaxis::setTitle public function