You are here

ChartLabel.php in Charts 8.3

File

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

namespace Drupal\charts_highcharts\Settings\Highcharts;


/**
 * Chart Label.
 */
class ChartLabel implements \JsonSerializable {
  private $rotation;

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

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

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

}

Classes

Namesort descending Description
ChartLabel Chart Label.