public function setFormFieldType($formFieldType)
    {
        if (!is_string($formFieldType) || $formFieldType === '') {
            throw new InvalidArgumentException('"Form field type" argument must be a string and must not empty.');
        }

        $this->formFieldType = $formFieldType;

        return $this;
    }
public function setFormFieldType($formFieldType)
    {
        if (!is_string($formFieldType) || $formFieldType === '') {
            throw new InvalidArgumentException('"Form field type" argument must be a string and must not empty.');
        }

        $this->formFieldType = $formFieldType;

        return $this;
    }
public function setFormFieldType ( $ formFieldType ) { if ( ! is_string ( $ formFieldType ) || $ formFieldType === '' ) { throw new InvalidArgumentException ( '"Form field type" argument must be a string and must not empty.' ) ; } $ this -> formFieldType = $ formFieldType ; return $ this ; }
Sets form field type.

@param string $formFieldType

@return static
@throws InvalidArgumentException On invalid argument
Sets form field type .