final public function submit(array $submission)
    {
        $properties = $this->formDefinition->submit($submission);

        parent::__construct();
        $this->hydrate($properties);

        return $this;
    }
final public function submit(array $submission)
    {
        $properties = $this->formDefinition->submit($submission);

        parent::__construct();
        $this->hydrate($properties);

        return $this;
    }
final public function submit ( array $ submission ) { $ properties = $ this -> formDefinition -> submit ( $ submission ) ; parent :: __construct ( ) ; $ this -> hydrate ( $ properties ) ; return $ this ; }
Fills the form object with the data from the supplied submission.

@param array $submission

@return static
@throws InvalidFormSubmissionException
Fills the form object with the data from the supplied submission .