<?php

namespace App\Events;

use App\Enums\ActivityTypeEnum;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Events\Dispatchable;

class ActivityLogged
{
    use Dispatchable;

    public function __construct(
        public ActivityTypeEnum $type,
        public string $message,
        /** @var array<string, mixed> */
        public array $context = [],
        public ?Model $subject = null,
    ) {}
}
