public function setForm($name, $formName, $type, array $validationGroups)
    {
        $this->forms[$name] = array('type' => $type, 'name' => $formName, 'validation_groups' => $validationGroups);

        return $this;
    }
public function setForm($name, $formName, $type, array $validationGroups)
    {
        $this->forms[$name] = array('type' => $type, 'name' => $formName, 'validation_groups' => $validationGroups);

        return $this;
    }
public function setForm ( $ name , $ formName , $ type , array $ validationGroups ) { $ this -> forms [ $ name ] = array ( 'type' => $ type , 'name' => $ formName , 'validation_groups' => $ validationGroups ) ; return $ this ; }
Set the form configuration.

@param string $name
@param string $formName
@param string $type
@param array  $validationGroups

@return static
Set the form configuration .