<?php

namespace App\Services\Care;

use App\Models\AuditLog;
use App\Models\Member;

class AuditLogger
{
    public static function record(
        string $ownerRef,
        string $action,
        ?int $organizationId = null,
        ?string $actorRef = null,
        ?string $subjectType = null,
        ?int $subjectId = null,
        ?array $metadata = null,
    ): AuditLog {
        return AuditLog::record(
            $ownerRef,
            $action,
            $organizationId,
            $actorRef,
            $subjectType,
            $subjectId,
            $metadata,
        );
    }
}
