class ChartDimensions in Charts 8.3
Same name in this branch
- 8.3 modules/charts_billboard/src/Settings/Billboard/ChartDimensions.php \Drupal\charts_billboard\Settings\Billboard\ChartDimensions
- 8.3 modules/charts_c3/src/Settings/CThree/ChartDimensions.php \Drupal\charts_c3\Settings\CThree\ChartDimensions
Same name and namespace in other branches
- 8 modules/charts_c3/src/Settings/CThree/ChartDimensions.php \Drupal\charts_c3\Settings\CThree\ChartDimensions
Chart Dimensions.
Hierarchy
- class \Drupal\charts_c3\Settings\CThree\ChartDimensions implements \Drupal\charts_c3\Settings\CThree\JsonSerializable
Expanded class hierarchy of ChartDimensions
File
- modules/
charts_c3/ src/ Settings/ CThree/ ChartDimensions.php, line 8
Namespace
Drupal\charts_c3\Settings\CThreeView source
class ChartDimensions implements \JsonSerializable {
private $ratio;
/**
* Get Ratio.
*
* @return mixed
* Ratio.
*/
public function getRatio() {
return $this->ratio;
}
/**
* Set Ratio.
*
* @param mixed $ratio
* Ratio.
*/
public function setRatio($ratio) {
$this->ratio = $ratio;
}
/**
* Json Serialize.
*
* @return array
* Json Serialize.
*/
public function jsonSerialize() {
$vars = get_object_vars($this);
return $vars;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartDimensions:: |
private | property | ||
ChartDimensions:: |
public | function | Get Ratio. | |
ChartDimensions:: |
public | function | Json Serialize. | |
ChartDimensions:: |
public | function | Set Ratio. |