ChartData.php in Charts 8
File
modules/charts_c3/src/Settings/CThree/ChartData.php
View source
<?php
namespace Drupal\charts_c3\Settings\CThree;
class ChartData implements \JsonSerializable {
private $columns = array();
private $type;
private $labels = TRUE;
private $x = 'x';
public function getX() {
return $this->x;
}
public function setX($x) {
$this->x = $x;
}
public function getColumns() {
return $this->columns;
}
public function setColumns($columns) {
$this->columns = $columns;
}
public function getType() {
return $this->type;
}
public function setType($type) {
$this->type = $type;
}
public function getLabels() {
return $this->labels;
}
public function setLabels($labels) {
$this->labels = $labels;
}
public function jsonSerialize() {
$vars = get_object_vars($this);
return $vars;
}
}