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