src/FieldHandlers/CsvField.php
public function setType(string $type) : void
    {
        if (empty($type)) {
            throw new InvalidArgumentException('Empty field type is not allowed: ' . $this->getName());
        }

        $this->_type = $this->_extractType($type);
    }
public function setType(string $type) : void
    {
        if (empty($type)) {
            throw new InvalidArgumentException('Empty field type is not allowed: ' . $this->getName());
        }

        $this->_type = $this->_extractType($type);
    }
public function setType ( string $ type ) : void { if ( empty ( $ type ) ) { throw new InvalidArgumentException ( 'Empty field type is not allowed: ' . $ this -> getName ( ) ) ; } $ this -> _type = $ this -> _extractType ( $ type ) ; }
Set field type

@throws \InvalidArgumentException when type is empty
@param  string $type field type
@return void
Set field type