/** * @return string */ public function eventIdentificationKey() { if ($this->onClassWithName !== null) { return $this->name . \ltrim($this->onClassWithName, "\\"); } if ($this->onObject !== null) { return $this->name . $this->onObject->objectIdentificationKey(); } }
/** * @param \obo\Entity $entity * @return bool */ public function isRegisteredEntity(\obo\Entity $entity) { return isset($this->registeredEntities[$entity->objectIdentificationKey()]); }