You are here

class ChartColor in Charts 8

Same name and namespace in other branches
  1. 8.3 modules/charts_c3/src/Settings/CThree/ChartColor.php \Drupal\charts_c3\Settings\CThree\ChartColor

Hierarchy

  • class \Drupal\charts_c3\Settings\CThree\ChartColor implements \Drupal\charts_c3\Settings\CThree\JsonSerializable

Expanded class hierarchy of ChartColor

1 file declares its use of ChartColor
charts_c3.module in modules/charts_c3/charts_c3.module
Charts module integration with C3 library.

File

modules/charts_c3/src/Settings/CThree/ChartColor.php, line 5

Namespace

Drupal\charts_c3\Settings\CThree
View source
class ChartColor implements \JsonSerializable {
  private $pattern = array();

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

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

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

}

Members