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
$bestowalRecommendationsTable
private
Table
$bestowalRecommendationsTable
$bestowalsTable
private
Table
$bestowalsTable
$recommendationsTable
private
Table
$recommendationsTable
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: arrayactiveRecommendationBestowalsWithoutJoinRowsQuery()
private
activeRecommendationBestowalsWithoutJoinRowsQuery() : SelectQuery
Return values
SelectQuerycancelledBestowalsWithActiveJoinRowsQuery()
private
cancelledBestowalsWithActiveJoinRowsQuery() : SelectQuery
Return values
SelectQueryissueResult()
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: arrayjoinRowsWithoutRecommendationShortcutQuery()
private
joinRowsWithoutRecommendationShortcutQuery() : SelectQuery
Return values
SelectQueryrecommendationBestowalsMissingAwardQuery()
private
recommendationBestowalsMissingAwardQuery() : SelectQuery
Return values
SelectQueryrecommendationShortcutsWithoutJoinRowQuery()
private
recommendationShortcutsWithoutJoinRowQuery() : SelectQuery