src/FieldHandlers/DbField.php
protected function setType(string $type) : void
    {
        if (empty($type)) {
            throw new InvalidArgumentException(__CLASS__ . ': Empty field type is not allowed');
        }

        if (! in_array($type, array_keys($this->defaultOptions))) {
            throw new InvalidArgumentException(__CLASS__ . ': Unsupported field type: ' . $type);
        }

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

        if (! in_array($type, array_keys($this->defaultOptions))) {
            throw new InvalidArgumentException(__CLASS__ . ': Unsupported field type: ' . $type);
        }

        $this->type = $type;
    }
protected function setType ( string $ type ) : void { if ( empty ( $ type ) ) { throw new InvalidArgumentException ( __CLASS__ . ': Empty field type is not allowed' ) ; } if ( ! in_array ( $ type , array_keys ( $ this -> defaultOptions ) ) ) { throw new InvalidArgumentException ( __CLASS__ . ': Unsupported field type: ' . $ type ) ; } $ this -> type = $ type ; }
Field type setter.

@param string $type field type
@return void
Field type setter .