public function addResult(ComparisonResult $result)
 {
     if (!$result->getMatched()) {
         $this->matched = false;
     }
     parent::addResult($result);
 }
示例#2
0
 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;
 }