You are here

class GoogleOptions in Charts 8

Same name and namespace in other branches
  1. 8.3 modules/charts_google/src/Settings/Google/GoogleOptions.php \Drupal\charts_google\Settings\Google\GoogleOptions

Hierarchy

  • class \Drupal\charts_google\Settings\Google\GoogleOptions implements \Drupal\charts_google\Settings\Google\JsonSerializable

Expanded class hierarchy of GoogleOptions

1 file declares its use of GoogleOptions
charts_google.module in modules/charts_google/charts_google.module
Charts module integration with Google Charts library.

File

modules/charts_google/src/Settings/Google/GoogleOptions.php, line 5

Namespace

Drupal\charts_google\Settings\Google
View source
class GoogleOptions implements \JsonSerializable {
  private $title;
  private $chartArea;
  private $hAxis;
  private $vAxis;
  private $colors;

  /**
   * @return mixed
   */
  public function getTitle() {
    return $this->title;
  }

  /**
   * @param mixed $title
   */
  public function setTitle($title) {
    $this->title = $title;
  }

  /**
   * @return mixed
   */
  public function getChartArea() {
    return $this->chartArea;
  }

  /**
   * @param mixed $chartArea
   */
  public function setChartArea($chartArea) {
    $this->chartArea = $chartArea;
  }

  /**
   * @return mixed
   */
  public function getHAxis() {
    return $this->hAxis;
  }

  /**
   * @param mixed $hAxis
   */
  public function setHAxis($hAxis) {
    $this->hAxis = $hAxis;
  }

  /**
   * @return mixed
   */
  public function getVAxis() {
    return $this->vAxis;
  }

  /**
   * @param mixed $vAxis
   */
  public function setVAxis($vAxis) {
    $this->vAxis = $vAxis;
  }

  /**
   * @return mixed
   */
  public function getColors() {
    return $this->colors;
  }

  /**
   * @param mixed $colors
   */
  public function setColors($colors) {
    $this->colors = $colors;
  }

  /**
   * @return array
   */
  public function jsonSerialize() {
    $vars = get_object_vars($this);
    return $vars;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
GoogleOptions::$chartArea private property
GoogleOptions::$colors private property
GoogleOptions::$hAxis private property
GoogleOptions::$title private property
GoogleOptions::$vAxis private property
GoogleOptions::getChartArea public function
GoogleOptions::getColors public function
GoogleOptions::getHAxis public function
GoogleOptions::getTitle public function
GoogleOptions::getVAxis public function
GoogleOptions::jsonSerialize public function
GoogleOptions::setChartArea public function
GoogleOptions::setColors public function
GoogleOptions::setHAxis public function
GoogleOptions::setTitle public function
GoogleOptions::setVAxis public function