18 lines
343 B
PHP
18 lines
343 B
PHP
|
|
<?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;
|
||
|
|
}
|
||
|
|
}
|