DiagnosticOutcome
class DiagnosticOutcome implements Arrayable, JsonSerializable
Methods
__construct(Diagnostic $diagnostic, DiagnosticResult $result)
Create a new diagnostic outcome instance.
source()
Get the diagnostic's source metadata.
bool
fixable()
Determine whether this outcome may be fixed.
bool
fixRequiresOption()
Determine whether the fix requires choosing one of the result's options.
array
toArray()
Get the array representation of the outcome.
array
jsonSerialize()
Get the JSON representation of the outcome.
array
links(bool $agent = false)
Get the result's links keyed by label.
Details
at line 22
__construct(Diagnostic $diagnostic, DiagnosticResult $result)
Create a new diagnostic outcome instance.
at line 31
DiagnosticSource
source()
Get the diagnostic's source metadata.
at line 39
bool
fixable()
Determine whether this outcome may be fixed.
at line 49
bool
fixRequiresOption()
Determine whether the fix requires choosing one of the result's options.
at line 59
array
toArray()
Get the array representation of the outcome.
at line 89
array
jsonSerialize()
Get the JSON representation of the outcome.
at line 99
protected array
links(bool $agent = false)
Get the result's links keyed by label.