public static function hasOtherSchemaMajorRev(SchemaId $schemaId)
    {
        if (isset(self::$schemasByCurieMajor[$schemaId->getCurieWithMajorRev()])) {
            if (preg_match_all(
                    sprintf('/(%s:v[0-9]+)/', $schemaId->getCurie()),
                    implode(' ', array_keys(self::$schemasByCurieMajor)),
                    $matches
                ) !== false
            ) {
                return count($matches[1]) > 1;
            }
        }

        return false;
    }
public static function hasOtherSchemaMajorRev(SchemaId $schemaId)
    {
        if (isset(self::$schemasByCurieMajor[$schemaId->getCurieWithMajorRev()])) {
            if (preg_match_all(
                    sprintf('/(%s:v[0-9]+)/', $schemaId->getCurie()),
                    implode(' ', array_keys(self::$schemasByCurieMajor)),
                    $matches
                ) !== false
            ) {
                return count($matches[1]) > 1;
            }
        }

        return false;
    }
public static function hasOtherSchemaMajorRev ( SchemaId $ schemaId ) { if ( isset ( self :: $ schemasByCurieMajor [ $ schemaId -> getCurieWithMajorRev ( ) ] ) ) { if ( preg_match_all ( sprintf ( '/(%s:v[0-9]+)/' , $ schemaId -> getCurie ( ) ) , implode ( ' ' , array_keys ( self :: $ schemasByCurieMajor ) ) , $ matches ) !== false ) { return count ( $ matches [ 1 ] ) > 1 ; } } return false ; }
Checks if schema has additional major version.

@param SchemaId $schemaId

@return bool
Checks if schema has additional major version .