src/FieldHandlers/CsvField.php
public function setLimit($limit) : void
    {
        if ($limit === null) {
            $this->_limit = $limit;

            return;
        }

        if (is_int($limit) || is_numeric($limit)) {
            $limit = abs(intval($limit));
            $this->_limit = $limit === 0 ? null : $limit;

            return;
        }

        if (empty($limit)) {
            throw new InvalidArgumentException('Empty field type is not allowed: ' . $this->getName());
        }

        $this->_limit = $this->_extractLimit($limit);
    }
public function setLimit($limit) : void
    {
        if ($limit === null) {
            $this->_limit = $limit;

            return;
        }

        if (is_int($limit) || is_numeric($limit)) {
            $limit = abs(intval($limit));
            $this->_limit = $limit === 0 ? null : $limit;

            return;
        }

        if (empty($limit)) {
            throw new InvalidArgumentException('Empty field type is not allowed: ' . $this->getName());
        }

        $this->_limit = $this->_extractLimit($limit);
    }
public function setLimit ( $ limit ) : void { if ( $ limit === null ) { $ this -> _limit = $ limit ; return ; } if ( is_int ( $ limit ) || is_numeric ( $ limit ) ) { $ limit = abs ( intval ( $ limit ) ) ; $ this -> _limit = $ limit === 0 ? null : $ limit ; return ; } if ( empty ( $ limit ) ) { throw new InvalidArgumentException ( 'Empty field type is not allowed: ' . $ this -> getName ( ) ) ; } $ this -> _limit = $ this -> _extractLimit ( $ limit ) ; }
Set field limit

Type is set as is if it is null or integer.  If
it passses is_numeric() then it's cast to integer.
In all other cases, it is assumed that the limit is
a string defining field type, and limit needs to be
extracted.

@param int|string|null $limit field limit
@return void
Set field limit