Constructor that initializes the requirement.
public __construct ( boolean $fulfilled, string $testMessage, string $helpHtml, string | null $helpText = null, boolean $optional = false ) | ||
$fulfilled | boolean | Whether the requirement is fulfilled |
$testMessage | string | The message for testing the requirement |
$helpHtml | string | The help text formatted in HTML for resolving the problem |
$helpText | string | null | The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) |
$optional | boolean | Whether this is only an optional recommendation not a mandatory requirement |