KMP PHP API Reference

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

$auditService  : BestowalLinkAuditService

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

Methods

buildOptionParser()

public buildOptionParser(ConsoleOptionParser $parser) : ConsoleOptionParser
Parameters
$parser : ConsoleOptionParser

Option parser

Return values
ConsoleOptionParser

execute()

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

On this page

Search results