Exemplo n.º 1
0
 /**
  * @param IdentifiesEntity $other
  *
  * @return bool
  */
 public function equals(IdentifiesEntity $other)
 {
     return $other->toString() == $this->toString() && get_class($this) == get_class($other);
 }
Exemplo n.º 2
0
 /**
  * @param string           $entityClassName
  * @param IdentifiesEntity $identifier
  *
  * @return bool
  */
 public function isTracked($entityClassName, IdentifiesEntity $identifier)
 {
     return isset($this->map[$entityClassName][$identifier->toString()]);
 }