ChartAxis.php in Charts 8.3
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\charts_c3\Settings\CThreeFile
modules/charts_c3/src/Settings/CThree/ChartAxis.phpView source
<?php
namespace Drupal\charts_c3\Settings\CThree;
/**
* Chart Axis.
*/
class ChartAxis implements \JsonSerializable {
private $rotated = FALSE;
private $x = [
'type' => 'category',
];
/**
* Get Rotated.
*
* @return mixed
* Rotated.
*/
public function getRotated() {
return $this->rotated;
}
/**
* Set Rotated.
*
* @param mixed $rotated
* Rotated.
*/
public function setRotated($rotated) {
$this->rotated = $rotated;
}
/**
* Get X.
*
* @return mixed $x
* Data for X Axis.
*/
public function getX() {
return $this->x;
}
/**
* Set X.
*
* @param mixed $x
* Data for X Axis.
*/
public function setX($x) {
$this->x = $x;
}
/**
* Json Serialize.
*
* @return array
* Json Serialize.
*/
public function jsonSerialize() {
$vars = get_object_vars($this);
return $vars;
}
}