KMP PHP API Reference

BestowalLinkAuditService
in package
uses LocatorAwareTrait

Read-only consistency checks for recommendation-to-bestowal link ownership.

Table of Contents

Properties

$bestowalRecommendationsTable  : Table
$bestowalsTable  : Table
$recommendationsTable  : Table

Methods

__construct()  : mixed
audit()  : array<string, array{count: int, samples: array>}>
activeRecommendationBestowalsWithoutJoinRowsQuery()  : SelectQuery
cancelledBestowalsWithActiveJoinRowsQuery()  : SelectQuery
issueResult()  : array{count: int, samples: array>}
joinRowsWithoutRecommendationShortcutQuery()  : SelectQuery
recommendationBestowalsMissingAwardQuery()  : SelectQuery
recommendationShortcutsWithoutJoinRowQuery()  : SelectQuery

Properties

Methods

__construct()

public __construct([Table|null $bestowalsTable = null ][, Table|null $recommendationsTable = null ][, Table|null $bestowalRecommendationsTable = null ]) : mixed
Parameters
$bestowalsTable : Table|null = null

Optional injected bestowals table.

$recommendationsTable : Table|null = null

Optional injected recommendations table.

$bestowalRecommendationsTable : Table|null = null

Optional injected join table.

audit()

public audit([int $sampleLimit = 25 ]) : array<string, array{count: int, samples: array>}>
Parameters
$sampleLimit : int = 25

Number of sample rows to return per issue type.

Return values
array<string, array{count: int, samples: array>}>

activeRecommendationBestowalsWithoutJoinRowsQuery()

private activeRecommendationBestowalsWithoutJoinRowsQuery() : SelectQuery
Return values
SelectQuery

cancelledBestowalsWithActiveJoinRowsQuery()

private cancelledBestowalsWithActiveJoinRowsQuery() : SelectQuery
Return values
SelectQuery

issueResult()

private issueResult(SelectQuery $query, array<string, string> $order, int $sampleLimit) : array{count: int, samples: array>}
Parameters
$query : SelectQuery

Issue query.

$order : array<string, string>

Sort order for stable samples.

$sampleLimit : int

Number of sample rows to include.

Return values
array{count: int, samples: array>}

joinRowsWithoutRecommendationShortcutQuery()

private joinRowsWithoutRecommendationShortcutQuery() : SelectQuery
Return values
SelectQuery

recommendationBestowalsMissingAwardQuery()

private recommendationBestowalsMissingAwardQuery() : SelectQuery
Return values
SelectQuery

recommendationShortcutsWithoutJoinRowQuery()

private recommendationShortcutsWithoutJoinRowQuery() : SelectQuery
Return values
SelectQuery
On this page

Search results