Files
breadcrumb-the-shire/core/Service/Audit/NullAuditRecorder.php

18 lines
343 B
PHP
Raw Normal View History

<?php
namespace MintyPHP\Service\Audit;
/**
* No-op audit recorder used when the audit module is disabled.
*/
final class NullAuditRecorder implements AuditRecorderInterface
{
public function record(
string $eventType,
string $outcome = 'success',
array $context = []
): ?int {
return null;
}
}