<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Event\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class EventListener
{
    public function __construct(
        public readonly string $event,
        public readonly int $priority = 0,
        public readonly array $tags = [],
        public readonly bool $enabled = true,
        public readonly bool $once = false
    ) {}
}
