class DiagnosticReport implements Arrayable, JsonSerializable

Constants

VERSION

The version of the report's machine-readable payload.

Methods

__construct(array $diagnostics = [], array $fixes = [])

Create a new diagnostic report instance.

array
diagnostics()

Get the diagnostic outcomes.

array
fixes()

Get the diagnostic fix outcomes.

withFixes(array $fixes)

Add fix outcomes to the report.

bool
hasFailures()

Determine whether the report has failures.

bool
hasWarnings()

Determine whether the report has warnings.

array
toArray()

Get the array representation of the report.

array
jsonSerialize()

Get the JSON representation of the report.

Details

at line 26
__construct(array $diagnostics = [], array $fixes = [])

Create a new diagnostic report instance.

Parameters

array $diagnostics
array $fixes

at line 37
array diagnostics()

Get the diagnostic outcomes.

Return Value

array

at line 47
array fixes()

Get the diagnostic fix outcomes.

Return Value

array

at line 57
DiagnosticReport withFixes(array $fixes)

Add fix outcomes to the report.

Parameters

array $fixes

Return Value

DiagnosticReport

at line 65
bool hasFailures()

Determine whether the report has failures.

Return Value

bool

at line 85
bool hasWarnings()

Determine whether the report has warnings.

Return Value

bool

at line 107
array toArray()

Get the array representation of the report.

Return Value

array

at line 127
array jsonSerialize()

Get the JSON representation of the report.

Return Value

array