<?php

declare(strict_types=1);

namespace {{ namespace }};

use App\Domain\Shared\Actions\BaseAction;
use App\Domain\Shared\Events\BaseDomainEvent;
use App\Domain\Shared\Rules\BusinessRule;

/**
 * {{ description }}
 *
 * @package {{ namespace }}
 */
class {{ className }} extends BaseAction
{
    # ── Constructor ───────────────────────────────────────────────────────────

    public function __construct()
    {
        //
    }

    # ── Execute ───────────────────────────────────────────────────────────────

    /**
     * Execute the action.
     *
     * @return mixed
     */
    public function execute(mixed ...$args): mixed
    {
        // 1. Enforce business rules
        // $this->enforce(new SomeRule(...));

        // 2. Perform the operation
        // ...

        // 3. Dispatch domain event
        // $this->dispatch(new SomeEvent(...));

        return null;
    }
}
