public static function getOtherSchemaMajorRev(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
            ) {
                $schemas = [];

                foreach ($matches[1] as $curieMajor) {
                    $schemas[] = self::$schemasByCurieMajor[$curieMajor];
                }

                return $schemas;
            }
        }

        return false;
    }
public static function getOtherSchemaMajorRev(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
            ) {
                $schemas = [];

                foreach ($matches[1] as $curieMajor) {
                    $schemas[] = self::$schemasByCurieMajor[$curieMajor];
                }

                return $schemas;
            }
        }

        return false;
    }
public static function getOtherSchemaMajorRev ( 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 ) { $ schemas = [ ] ; foreach ( $ matches [ 1 ] as $ curieMajor ) { $ schemas [ ] = self :: $ schemasByCurieMajor [ $ curieMajor ] ; } return $ schemas ; } } return false ; }
Returns list of all schemas with major version.

@param SchemaId $schemaId

@return SchemaDescriptor[]|bool
Returns list of all schemas with major version .