Example #1
0
 /**
  * Setup form.
  *
  * @param Form $form
  * @return $this
  */
 public function setForm(Form $form)
 {
     $this->_form = $form;
     if (!isset($this->type)) {
         $this->_setType();
     }
     $this->_domain = $form->getDomain();
     return $this;
 }