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.

Parameters

Diagnostic $diagnostic
DiagnosticResult $result

at line 31
DiagnosticSource source()

Get the diagnostic's source metadata.

Return Value

DiagnosticSource

at line 39
bool fixable()

Determine whether this outcome may be fixed.

Return Value

bool

at line 49
bool fixRequiresOption()

Determine whether the fix requires choosing one of the result's options.

Return Value

bool

at line 59
array toArray()

Get the array representation of the outcome.

Return Value

array

at line 89
array jsonSerialize()

Get the JSON representation of the outcome.

Return Value

array

Get the result's links keyed by label.

Parameters

bool $agent

Return Value

array