<?php

namespace App\Services\Meet;

use App\Models\AuditLog;

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,
        );
    }
}
