示例#1
0
 /**
  * If state identical with another
  *
  * @param StateInterface $comparedState
  * @return bool
  */
 public function isIdentical(StateInterface $comparedState)
 {
     return $this->getName() == $comparedState->getName() && $this->getType() == $comparedState->getType();
 }