izzum\rules\Rule::containsResult PHP Method

containsResult() final public method

This is only matched on the string, not on the class that generated the result. you can check this against constants in a class eg: Rule::RESULT_<*>. In case you want to also know the class or classname, use getResults()
See also: Rule::getResults()
final public containsResult ( string $expected )
$expected string
    public final function containsResult($expected)
    {
        $output = false;
        $results = $this->getResults();
        foreach ($results as $result) {
            if ($result->getResult() === $expected) {
                $output = true;
            }
        }
        return $output;
    }