/** * Checks whether this feedback is similar to another * * @param FeedbackInterface $feedback * @return boolean */ public function isSimilarTo(FeedbackInterface $feedback) { if (!$feedback instanceof UpdateNodeInfo) { return false; } return $this->getNode()->getContextPath() === $feedback->getNode()->getContextPath(); }
/** * Checks whether this feedback is similar to another * * @param FeedbackInterface $feedback * @return boolean */ public function isSimilarTo(FeedbackInterface $feedback) { if (!$feedback instanceof RenderContentOutOfBand) { return false; } return $this->getNode()->getContextPath() === $feedback->getNode()->getContextPath() && $this->getReferenceData() == $feedback->getReferenceData(); }