Exemple #1
0
 /**
  * @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();
     }
 }
Exemple #2
0
 /**
  * @param \obo\Entity $entity
  * @return bool
  */
 public function isRegisteredEntity(\obo\Entity $entity)
 {
     return isset($this->registeredEntities[$entity->objectIdentificationKey()]);
 }