* @version 2.0 * @license MIT * @link https://github.com/xaboy/form-builder * @document http://php.form-create.com */ namespace FormBuilder\Driver; use FormBuilder\Rule\OptionsRule; abstract class FormOptionsComponent extends FormComponent { use OptionsRule; public function build() { $rule = parent::build(); return array_merge($rule, $this->parseOptionsRule()); } }