CheckResult
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.
at line 34
int
passCount()
Get the number of passed assertions.
at line 42
int
failCount()
Get the number of failed assertions.
at line 50
bool
passed()
Check if all assertions passed.
at line 64
array
failures()
Get all failed assertion descriptions.