ChartLabel.php in Charts 8.3
Same filename in this branch
Same filename and directory in other branches
File
modules/charts_highcharts/src/Settings/Highcharts/ChartLabel.phpView 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
Name | Description |
---|---|
ChartLabel | Chart Label. |