public static function getAllSchemaVersions(SchemaId $schemaId)
    {
        $schemaIds = preg_grep(sprintf('/(%s):([0-9]+)-([0-9]+)-([0-9]+)/', $schemaId->getCurie()), array_keys(self::$schemas));

        if ($schemaIds === false || count($schemaIds) === 0) {
            return false;
        }

        $schemas = [];

        foreach ($schemaIds as $schemaId) {
            $schemas[] = self::$schemas[$schemaId];
        }

        return $schemas;
    }
public static function getAllSchemaVersions(SchemaId $schemaId)
    {
        $schemaIds = preg_grep(sprintf('/(%s):([0-9]+)-([0-9]+)-([0-9]+)/', $schemaId->getCurie()), array_keys(self::$schemas));

        if ($schemaIds === false || count($schemaIds) === 0) {
            return false;
        }

        $schemas = [];

        foreach ($schemaIds as $schemaId) {
            $schemas[] = self::$schemas[$schemaId];
        }

        return $schemas;
    }
public static function getAllSchemaVersions ( SchemaId $ schemaId ) { $ schemaIds = preg_grep ( sprintf ( '/(%s):([0-9]+)-([0-9]+)-([0-9]+)/' , $ schemaId -> getCurie ( ) ) , array_keys ( self :: $ schemas ) ) ; if ( $ schemaIds === false || count ( $ schemaIds ) === 0 ) { return false ; } $ schemas = [ ] ; foreach ( $ schemaIds as $ schemaId ) { $ schemas [ ] = self :: $ schemas [ $ schemaId ] ; } return $ schemas ; }
Returns all schemas with the same curie.

@param SchemaId $schemaId

@return SchemaDescriptor[]|bool
Returns all schemas with the same curie .