| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Write-side operations on the log subsystem: redirect-hit logging, queued |
| 9 |
* batch flush, lookup-table population, and the static pipeline-trace |
| 10 |
* decoder paired with the writer. |
| 11 |
*/ |
| 12 |
interface ABJ_404_Solution_LogWriteInterface { |
| 13 |
|
| 14 |
/** |
| 15 |
* @param ABJ_404_Solution_RedirectHitLogEntry $entry |
| 16 |
* @return void |
| 17 |
*/ |
| 18 |
public function logRedirectHit(ABJ_404_Solution_RedirectHitLogEntry $entry): void; |
| 19 |
|
| 20 |
/** |
| 21 |
* @param array<string, mixed> $entry |
| 22 |
* @return void |
| 23 |
*/ |
| 24 |
public function queueLogEntry(array $entry): void; |
| 25 |
|
| 26 |
/** @return void */ |
| 27 |
public function flushLogQueue(): void; |
| 28 |
|
| 29 |
/** |
| 30 |
* @param string $valueToInsert |
| 31 |
* @return int |
| 32 |
*/ |
| 33 |
public function insertLookupValueAndGetID($valueToInsert); |
| 34 |
|
| 35 |
/** |
| 36 |
* @param string $userName |
| 37 |
* @return int |
| 38 |
*/ |
| 39 |
public function getLookupIDForUser($userName); |
| 40 |
|
| 41 |
/** @return void */ |
| 42 |
public function correctDuplicateLookupValues(): void; |
| 43 |
|
| 44 |
/** |
| 45 |
* @param string|null $raw |
| 46 |
* @return array<int, array{step: string, outcome: string, detail: string}>|null |
| 47 |
*/ |
| 48 |
public static function decompressPipelineTrace(?string $raw): ?array; |
| 49 |
} |
| 50 |
|