/** * Create a new InstallerFormBuilder instance. * * @param Form $form */ public function __construct(Form $form) { $this->dispatch(new SetFormOptions($form->getOptions())); parent::__construct($form); }
/** * Create a new MultipleFormBuilder instance. * * @param Form $form * @param FormCollection $forms */ public function __construct(Form $form, FormCollection $forms) { $this->forms = $forms; parent::__construct($form); }
/** * Create a new VariableFormBuilder instance. * * @param Form $form * @param VariableModel $model */ public function __construct(Form $form, VariableModel $model) { $this->setEntry($model->firstOrNew([])->getId()); parent::__construct($form); }