public function setName($name, $rebuild = true)
    {
        $this->name = $name;

        if ($rebuild) {
            $this->rebuildForm();
        }

        return $this;
    }
public function setName($name, $rebuild = true)
    {
        $this->name = $name;

        if ($rebuild) {
            $this->rebuildForm();
        }

        return $this;
    }
public function setName ( $ name , $ rebuild = true ) { $ this -> name = $ name ; if ( $ rebuild ) { $ this -> rebuildForm ( ) ; } return $ this ; }
Set the name of the form.

@param string $name
@param bool $rebuild
@return $this
Set the name of the form .