Piwik\Plugins\Diagnostics\Diagnostic\

DiagnosticResult

The result of a diagnostic.

Methods

The class defines the following methods:

__construct()

Signature

  • It accepts the following parameter(s):
    • $label

singleResult()

Signature

  • It accepts the following parameter(s):

    • $label (string) —

    • $status (string) —

    • $comment (string) —

  • It returns a DiagnosticResult value.

getLabel()

Signature

  • It returns a string value.

getItems()

Signature

addItem()

Signature

  • It accepts the following parameter(s):

  • It does not return anything.

setItems()

Signature

  • It accepts the following parameter(s):

    • $items (array) —
  • It does not return anything.

getLongErrorMessage()

Signature

  • It returns a string value.

setLongErrorMessage()

Signature

  • It accepts the following parameter(s):

    • $longErrorMessage (string) —
  • It does not return anything.

getStatus()

Returns the worst status of the items.

Signature

  • Returns: string — One of the STATUS_* constants.