<?php

namespace MintyPHP\Service\Audit;

/**
 * No-op API audit service used when the audit module is disabled.
 */
final class NullApiAuditService implements ApiAuditServiceInterface
{
    public function startRequestContext(): void
    {
    }

    public function finish(int $statusCode, ?string $errorCode = null): void
    {
    }

    public function currentRequestId(): ?string
    {
        return null;
    }
}
