protected function getPrecision($length, $dataType, $columnType)
    {
        if (in_array($dataType, ['decimal', 'double', 'float', 'real'])) {
            $match = [];

            preg_match('#\((.*?)\)#', $columnType, $match);

            if (!isset($match[1])) {
                return null;
            }

            return explode(',', $match[1]);
        }

        if (intval($length) > 0) {
            return [$length];
        }

        return [];
    }
protected function getPrecision($length, $dataType, $columnType)
    {
        if (in_array($dataType, ['decimal', 'double', 'float', 'real'])) {
            $match = [];

            preg_match('#\((.*?)\)#', $columnType, $match);

            if (!isset($match[1])) {
                return null;
            }

            return explode(',', $match[1]);
        }

        if (intval($length) > 0) {
            return [$length];
        }

        return [];
    }
protected function getPrecision ( $ length , $ dataType , $ columnType ) { if ( in_array ( $ dataType , [ 'decimal' , 'double' , 'float' , 'real' ] ) ) { $ match = [ ] ; preg_match ( '#\((.*?)\)#' , $ columnType , $ match ) ; if ( ! isset ( $ match [ 1 ] ) ) { return null ; } return explode ( ',' , $ match [ 1 ] ) ; } if ( intval ( $ length ) > 0 ) { return [ $ length ] ; } return [ ] ; }
Gets the type params

@param string $length
@param string $dataType
@param string $columnType

@return $this
Gets the type params