<?php

declare(strict_types=1);

namespace App\Framework\GraphQL\Attributes;

use Attribute;

/**
 * Marks a class as containing GraphQL subscription resolvers
 *
 * Subscription resolvers return AsyncIterators that yield data when events occur
 */
#[Attribute(Attribute::TARGET_CLASS)]
final readonly class GraphQLSubscription
{
    public function __construct(
        public ?string $description = null
    ) {
    }
}
