public function setType($type)
    {
        if ($this->formHelper->getFieldType($type)) {
            $this->type = $type;
        }

        return $this;
    }
public function setType($type)
    {
        if ($this->formHelper->getFieldType($type)) {
            $this->type = $type;
        }

        return $this;
    }
public function setType ( $ type ) { if ( $ this -> formHelper -> getFieldType ( $ type ) ) { $ this -> type = $ type ; } return $ this ; }
Set type of the field.

@param mixed $type
@return $this
Set type of the field .