/** * Checks whether this feedback is similar to another * * @param FeedbackInterface $feedback * @return boolean */ public function isSimilarTo(FeedbackInterface $feedback) { if (!$feedback instanceof UpdateWorkspaceInfo) { return false; } return $this->getDocument()->getContextPath() === $feedback->getDocument()->getContextPath(); }
/** * Checks whether this feedback is similar to another * * @param FeedbackInterface $feedback * @return boolean */ public function isSimilarTo(FeedbackInterface $feedback) { if (!$feedback instanceof AbstractMessageFeedback) { return false; } return $this->getSeverity() === $feedback->getSeverity() && $this->getMessage() === $feedback->getMessage(); }