src/MessageResolver.php
public static function findAllUsingMixin($mixin): array
    {
        if ($mixin instanceof Mixin) {
            $key = $mixin->getId()->getCurieMajor();
        } else {
            $key = $mixin;
        }

        if (!isset(self::$resolvedMixins[$key])) {
            $schemas = [];
            foreach ((self::$mixins[$key] ?? []) as $id) {
                $schemas[] = self::$classes[$id]::schema();
            }
            self::$resolvedMixins[$key] = $schemas;
        }

        if (empty(self::$resolvedMixins[$key])) {
            throw new NoMessageForMixin($mixin);
        }

        return self::$resolvedMixins[$key];
    }
public static function findAllUsingMixin($mixin): array
    {
        if ($mixin instanceof Mixin) {
            $key = $mixin->getId()->getCurieMajor();
        } else {
            $key = $mixin;
        }

        if (!isset(self::$resolvedMixins[$key])) {
            $schemas = [];
            foreach ((self::$mixins[$key] ?? []) as $id) {
                $schemas[] = self::$classes[$id]::schema();
            }
            self::$resolvedMixins[$key] = $schemas;
        }

        if (empty(self::$resolvedMixins[$key])) {
            throw new NoMessageForMixin($mixin);
        }

        return self::$resolvedMixins[$key];
    }
Returns an array of Schemas using the provided mixin.

@param Mixin|string $mixin Mixin or curie major

@return Schema[]

@throws NoMessageForMixin