public static function getSchemasByNamespaces(array $namespaces)
    {
        $schemas = [];

        /** @var SchemaDescriptor $schema */
        foreach (self::$schemasByCurie as $schema) {
            if (in_array($schema->getId()->getNamespace(), $namespaces)) {
                $schemas[] = $schema;
            }
        }

        return $schemas;
    }
public static function getSchemasByNamespaces(array $namespaces)
    {
        $schemas = [];

        /** @var SchemaDescriptor $schema */
        foreach (self::$schemasByCurie as $schema) {
            if (in_array($schema->getId()->getNamespace(), $namespaces)) {
                $schemas[] = $schema;
            }
        }

        return $schemas;
    }
public static function getSchemasByNamespaces ( array $ namespaces ) { $ schemas = [ ] ; /** @var SchemaDescriptor $schema */ foreach ( self :: $ schemasByCurie as $ schema ) { if ( in_array ( $ schema -> getId ( ) -> getNamespace ( ) , $ namespaces ) ) { $ schemas [ ] = $ schema ; } } return $ schemas ; }
Returns an array of schemas by namespaces.

@param string[] $namespaces

@return SchemaDescriptor[]
Returns an array of schemas by namespaces .