You are here

class ChartCredits in Charts 8.3

Same name and namespace in other branches
  1. 8 modules/charts_highcharts/src/Settings/Highcharts/ChartCredits.php \Drupal\charts_highcharts\Settings\Highcharts\ChartCredits

Chart Credits.

Hierarchy

  • class \Drupal\charts_highcharts\Settings\Highcharts\ChartCredits implements \Drupal\charts_highcharts\Settings\Highcharts\JsonSerializable

Expanded class hierarchy of ChartCredits

1 file declares its use of ChartCredits
Highcharts.php in modules/charts_highcharts/src/Plugin/chart/Highcharts.php

File

modules/charts_highcharts/src/Settings/Highcharts/ChartCredits.php, line 8

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
class ChartCredits implements \JsonSerializable {
  private $enabled = FALSE;
  private $text;
  private $position;
  private $href = '#';

  /**
   * Is Enabled.
   *
   * @return bool
   *   Enabled.
   */
  public function isEnabled() {
    return $this->enabled;
  }

  /**
   * Set Enabled.
   *
   * @param bool $enabled
   *   Enabled.
   */
  public function setEnabled($enabled) {
    $this->enabled = $enabled;
  }

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

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

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

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

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
ChartCredits::$enabled private property
ChartCredits::$href private property
ChartCredits::$position private property
ChartCredits::$text private property
ChartCredits::getHref public function
ChartCredits::getPosition public function
ChartCredits::getText public function
ChartCredits::isEnabled public function Is Enabled.
ChartCredits::jsonSerialize public function Json Serialize.
ChartCredits::setEnabled public function Set Enabled.
ChartCredits::setHref public function
ChartCredits::setPosition public function
ChartCredits::setText public function