Exemplo n.º 1
0
 public function fill($formData) : self
 {
     $form = clone $this;
     $form->data = $this->mapping->unbind($formData);
     $form->value = $formData;
     return $form;
 }
Exemplo n.º 2
0
 public function unbind($value) : Data
 {
     if (null === $value) {
         return Data::none();
     }
     return $this->wrappedMapping->unbind($value);
 }