yii\db\ColumnSchemaBuilder::buildLengthString PHP Method

buildLengthString() protected method

Builds the length/precision part of the column.
protected buildLengthString ( ) : string
return string
    protected function buildLengthString()
    {
        if ($this->length === null || $this->length === []) {
            return '';
        }
        if (is_array($this->length)) {
            $this->length = implode(',', $this->length);
        }
        return "({$this->length})";
    }