src/Fridge/DBAL/Schema/Column.php
public function setLength($length)
    {
        if (($length !== null) && (!is_int($length) || ($length <= 0))) {
            throw SchemaException::invalidColumnLength($this->getName());
        }

        $this->length = $length;
    }
public function setLength($length)
    {
        if (($length !== null) && (!is_int($length) || ($length <= 0))) {
            throw SchemaException::invalidColumnLength($this->getName());
        }

        $this->length = $length;
    }
public function setLength ( $ length ) { if ( ( $ length !== null ) && ( ! is_int ( $ length ) || ( $ length <= 0 ) ) ) { throw SchemaException :: invalidColumnLength ( $ this -> getName ( ) ) ; } $ this -> length = $ length ; }
Sets the column length.

@param integer|null $length The column length.

@throws \Fridge\DBAL\Exception\SchemaException If the length is not a positive integer.
Sets the column length .