Example #1
0
 /**
  * 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();
 }
Example #2
0
 /**
  * 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();
 }
Example #3
0
 /**
  * Checks whether this feedback is similar to another
  *
  * @param FeedbackInterface $feedback
  * @return boolean
  */
 public function isSimilarTo(FeedbackInterface $feedback)
 {
     if (!$feedback instanceof NodeCreated) {
         return false;
     }
     return $this->getDocument()->getContextPath() === $feedback->getDocument()->getContextPath();
 }
Example #4
0
 /**
  * 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();
 }