RequirementCollection::addRecommendation PHP Method

addRecommendation() public method

Adds an optional recommendation.
public addRecommendation ( boolean $fulfilled, string $testMessage, string $helpHtml, string | null $helpText = null )
$fulfilled boolean Whether the recommendation is fulfilled
$testMessage string The message for testing the recommendation
$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)
    public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText = null)
    {
        $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, true));
    }