/** * Get parent JSON and add specific pie related attributes and values. * * @return array */ public function jsonSerialize() { // @codingStandardsIgnoreLine (CONTRIB-6469). $data = parent::jsonSerialize(); $data['doughnut'] = $this->get_doughnut(); return $data; }
/** * Add the horizontal to the parent and return the serialized data. * * @return array */ public function jsonSerialize() { // @codingStandardsIgnoreLine (CONTRIB-6469). $data = parent::jsonSerialize(); $data['horizontal'] = $this->get_horizontal(); return $data; }