final class CheckResult

Result container for Doctor checks.

Collects assertions with pass/fail status and descriptions for display by the CacheDoctorCommand.

Properties

array<int, array{passed: bool, description: string}> $assertions

Methods

void
assert(bool $condition, string $description)

Record an assertion result.

int
passCount()

Get the number of passed assertions.

int
failCount()

Get the number of failed assertions.

bool
passed()

Check if all assertions passed.

array
failures()

Get all failed assertion descriptions.

Details

at line 23
void assert(bool $condition, string $description)

Record an assertion result.

Parameters

bool $condition
string $description

Return Value

void

at line 34
int passCount()

Get the number of passed assertions.

Return Value

int

at line 42
int failCount()

Get the number of failed assertions.

Return Value

int

at line 50
bool passed()

Check if all assertions passed.

Return Value

bool

at line 64
array failures()

Get all failed assertion descriptions.

Return Value

array