/** * Get the data in a serializable format. * * @return array */ public function yamlSerialize() { $option = parent::yamlSerialize(); $option['specific'] = array('choice' => $this->choice); return $option; }
/** * Get the data in a serializable format. * * @return array */ public function yamlSerialize() { $option = parent::yamlSerialize(); $option['specific'] = array('regex' => $this->regex, 'regexError' => $this->regexError, 'html' => $this->html); return $option; }