You are here

class YaxisLabel in Charts 8.3

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

Y Axis Label.

Hierarchy

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

Expanded class hierarchy of YaxisLabel

1 file declares its use of YaxisLabel
Highcharts.php in modules/charts_highcharts/src/Plugin/chart/Highcharts.php

File

modules/charts_highcharts/src/Settings/Highcharts/YaxisLabel.php, line 8

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class YaxisLabel implements \JsonSerializable {
  private $overflow = 'justify';
  private $suffix = '';
  private $prefix = '';

  /**
   * Set Overflow.
   *
   * @param mixed $overflow
   *   Overflow.
   */
  public function setOverflow($overflow) {
    $this->overflow = $overflow;
  }

  /**
   * Get Overflow.
   *
   * @return string
   *   Overflow.
   */
  public function getOverflow() {
    return $this->overflow;
  }

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

  /**
   * @param string $suffix;
   */
  public function setYaxisLabelSuffix($suffix) {
    $this->suffix = $suffix;
  }

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

  /**
   * @param string $prefix
   */
  public function setYaxisLabelPrefix($prefix) {
    $this->prefix = $prefix;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
YaxisLabel::$overflow private property
YaxisLabel::$prefix private property
YaxisLabel::$suffix private property
YaxisLabel::getOverflow public function Get Overflow.
YaxisLabel::getYaxisLabelPrefix public function
YaxisLabel::getYaxisLabelSuffix public function
YaxisLabel::jsonSerialize public function Json Serialize.
YaxisLabel::setOverflow public function Set Overflow.
YaxisLabel::setYaxisLabelPrefix public function
YaxisLabel::setYaxisLabelSuffix public function