public static function isValid ($version)
    {
        if (self::isDev($version)) {
            return true;
        } else {
            return (boolean) preg_match('/' . self::$validPattern . '/i', $version);
        }
    }
public static function isValid ($version)
    {
        if (self::isDev($version)) {
            return true;
        } else {
            return (boolean) preg_match('/' . self::$validPattern . '/i', $version);
        }
    }
public static function isValid ( $ version ) { if ( self :: isDev ( $ version ) ) { return true ; } else { return ( boolean ) preg_match ( '/' . self :: $ validPattern . '/i' , $ version ) ; } }
Test if version is valid

@return boolean
Test if version is valid