initTitle(); $this->initAnimation(); $this->initAxis(); $this->initStroke(); $this->initLegend(); $this->initDataLabels(); $this->initSparkline(); $this->initGrid(); $this->initColors(); $this->initTheme(); $this->initJsonConfig(); } public function reactiveKey() { return md5(json_encode($this->toArray())); } public function toArray() { return array_merge( $this->titleToArray(), $this->animationToArray(), $this->axisToArray(), $this->strokeToArray(), $this->legendToArray(), $this->dataLabelsToArray(), $this->sparklineToArray(), $this->gridToArray(), $this->colorsToArray(), $this->themeToArray(), $this->jsonConfigToArray(), ); } public function fromArray($array) { $this->titleFromArray($array); $this->animationFromArray($array); $this->axisFromArray($array); $this->strokeFromArray($array); $this->legendFromArray($array); $this->dataLabelsFromArray($array); $this->sparklineFromArray($array); $this->gridFromArray($array); $this->colorsFromArray($array); $this->themeFromArray($array); $this->jsonConfigFromArray($array); } }