コード例 #1
0
ファイル: UpdateWorkspaceInfo.php プロジェクト: neos/neos-ui
 /**
  * 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();
 }
コード例 #2
0
ファイル: DocumentNodeCreated.php プロジェクト: neos/neos-ui
 /**
  * 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();
 }