src/FieldHandlers/CsvField.php
protected function _extractLimit(string $type)
    {
        if (preg_match(static::PATTERN_TYPE, $type, $matches)) {
            if (! empty($matches[2])) {
                return $matches[2];
            }
        }

        return static::DEFAULT_FIELD_LIMIT;
    }
protected function _extractLimit(string $type)
    {
        if (preg_match(static::PATTERN_TYPE, $type, $matches)) {
            if (! empty($matches[2])) {
                return $matches[2];
            }
        }

        return static::DEFAULT_FIELD_LIMIT;
    }
protected function _extractLimit ( string $ type ) { if ( preg_match ( static :: PATTERN_TYPE , $ type , $ matches ) ) { if ( ! empty ( $ matches [ 2 ] ) ) { return $ matches [ 2 ] ; } } return static :: DEFAULT_FIELD_LIMIT ; }
Extract field limit from type value

Field type can be either simple or combined
with limit. For example:

* Simple: uuid, string, date.
* Combined: string(100), list(Foo).

In case of a simple type, the default limit is
returned. For the combined typed, the type is
stripped out and a limit only is returned.

@param  string $type field type
@return mixed        field limit
Extract field limit from type value