protected function getEnumValuesFromType($type)
    {
        if ( ! preg_match('#^enum\((?<values>.*)\)$#i', $type, $matches)) {
            return false;
        }

        $enum = [];

        foreach (explode(',', $matches['values']) as $value) {
            $v      = trim( $value, "'" );
            $enum[] = $v;
        }

        return $enum;
    }
protected function getEnumValuesFromType($type)
    {
        if ( ! preg_match('#^enum\((?<values>.*)\)$#i', $type, $matches)) {
            return false;
        }

        $enum = [];

        foreach (explode(',', $matches['values']) as $value) {
            $v      = trim( $value, "'" );
            $enum[] = $v;
        }

        return $enum;
    }
protected function getEnumValuesFromType ( $ type ) { if ( ! preg_match ( '#^enum\((?<values>.*)\)$#i' , $ type , $ matches ) ) { return false ; } $ enum = [ ] ; foreach ( explode ( ',' , $ matches [ 'values' ] ) as $ value ) { $ v = trim ( $ value , "'" ) ; $ enum [ ] = $ v ; } return $ enum ; }
Returns enum values for column type string.

@param string $type
@return array|bool
Returns enum values for column type string .