You are here

class Yaxis in Charts 8

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

Hierarchy

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

Expanded class hierarchy of Yaxis

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

File

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

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class Yaxis implements \JsonSerializable {
  private $title;
  private $labels = '';

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

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

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

  /**
   * @param string $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
Yaxis::$labels private property
Yaxis::$title private property
Yaxis::getLabels public function
Yaxis::getTitle public function
Yaxis::jsonSerialize public function
Yaxis::setLabels public function
Yaxis::setTitle public function