DiagnosticReport
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.
at line 37
array
diagnostics()
Get the diagnostic outcomes.
at line 47
array
fixes()
Get the diagnostic fix outcomes.
at line 57
DiagnosticReport
withFixes(array $fixes)
Add fix outcomes to the report.
at line 65
bool
hasFailures()
Determine whether the report has failures.
at line 85
bool
hasWarnings()
Determine whether the report has warnings.
at line 107
array
toArray()
Get the array representation of the report.
at line 127
array
jsonSerialize()
Get the JSON representation of the report.