public function addResult(ComparisonResult $result) { if (!$result->getMatched()) { $this->matched = false; } parent::addResult($result); }
public function addResult(ComparisonResult $result) { $this->results[] = $result; if (!$result->getMatched()) { $this->matched = false; } }
public function __construct($depth, $key, ComparisonResult $result) { parent::__construct($result->getMatched(), $depth, null, null); $this->key = $key; $this->result = $result; }