20 lines
471 B
PHP
20 lines
471 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace MintyPHP\Service\Audit;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* No-op user lifecycle dashboard reader used when the audit module is disabled.
|
||
|
|
*/
|
||
|
|
final class NullUserLifecycleAuditDashboard implements UserLifecycleAuditDashboardInterface
|
||
|
|
{
|
||
|
|
public function actionCountInWindow(string $action, int $days, string $status = 'success'): int
|
||
|
|
{
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function summaryByAction(int $days, string $status = 'success'): array
|
||
|
|
{
|
||
|
|
return [];
|
||
|
|
}
|
||
|
|
}
|