<?php

namespace App\EventHooks\System;

use App\EventHooks\HookEvent;

/**
 * Fire noktası: AppServiceProvider — ScheduledTaskStarting dinleyicisi
 * 'PreAutomationTask' hook'unu fire eder. Context: task (['command',
 * 'description']). Model yok.
 */
class AutomationTaskStarting extends HookEvent
{
    public const HOOK = 'PreAutomationTask';

    /** @return array{command: ?string, description: ?string}|null */
    public function task(): ?array
    {
        return $this->get('task');
    }
}
