You are here

class ChartLabel in Charts 8

Same name in this branch
  1. 8 modules/charts_c3/src/Settings/CThree/ChartLabel.php \Drupal\charts_c3\Settings\CThree\ChartLabel
  2. 8 modules/charts_highcharts/src/Settings/Highcharts/ChartLabel.php \Drupal\charts_highcharts\Settings\Highcharts\ChartLabel
Same name and namespace in other branches
  1. 8.3 modules/charts_highcharts/src/Settings/Highcharts/ChartLabel.php \Drupal\charts_highcharts\Settings\Highcharts\ChartLabel

Hierarchy

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

Expanded class hierarchy of ChartLabel

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

File

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

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class ChartLabel implements \JsonSerializable {
  private $rotation;

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

  /**
   * @param mixed $rotation
   */
  public function setRotation($rotation) {
    $this->rotation = (int) $rotation;
  }

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

}

Members