You are here

class ChartDimensions in Charts 8.3

Same name in this branch
  1. 8.3 modules/charts_billboard/src/Settings/Billboard/ChartDimensions.php \Drupal\charts_billboard\Settings\Billboard\ChartDimensions
  2. 8.3 modules/charts_c3/src/Settings/CThree/ChartDimensions.php \Drupal\charts_c3\Settings\CThree\ChartDimensions
Same name and namespace in other branches
  1. 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\CThree
View 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

Namesort descending Modifiers Type Description Overrides
ChartDimensions::$ratio private property
ChartDimensions::getRatio public function Get Ratio.
ChartDimensions::jsonSerialize public function Json Serialize.
ChartDimensions::setRatio public function Set Ratio.