AuditBestowalLinksCommand
extends Command
in package
Read-only diagnostic command for bestowal link consistency.
Runs all audit checks from BestowalLinkAuditService and outputs counts and sample IDs to the console. Does not mutate any data.
Table of Contents
Properties
Methods
- __construct() : mixed
- buildOptionParser() : ConsoleOptionParser
- execute() : int
- formatSample() : string
- Format a single sample row as a compact string.
- humanizeKey() : string
- Convert a camelCase audit key to a readable label.
Properties
$auditService
private
BestowalLinkAuditService
$auditService
Methods
__construct()
public
__construct([BestowalLinkAuditService|null $auditService = null ]) : mixed
Parameters
- $auditService : BestowalLinkAuditService|null = null
-
Optional injected audit service.
buildOptionParser()
public
buildOptionParser(ConsoleOptionParser $parser) : ConsoleOptionParser
Parameters
- $parser : ConsoleOptionParser
-
Option parser
Return values
ConsoleOptionParserexecute()
public
execute(Arguments $args, ConsoleIo $io) : int
Parameters
- $args : Arguments
-
Console arguments
- $io : ConsoleIo
-
Console IO
Return values
int —Exit code
formatSample()
Format a single sample row as a compact string.
private
formatSample(array<string, mixed> $sample) : string
Parameters
- $sample : array<string, mixed>
-
Sample row from audit
Return values
string —Formatted single-line representation
humanizeKey()
Convert a camelCase audit key to a readable label.
private
humanizeKey(string $key) : string
Parameters
- $key : string
-
Raw audit key
Return values
string —Human-readable label