示例#1
0
文件: Event.php 项目: Hlavos/obo
 /**
  * @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();
     }
 }
示例#2
0
 /**
  * @param \obo\Entity $entity
  * @return bool
  */
 public function isRegisteredEntity(\obo\Entity $entity)
 {
     return isset($this->registeredEntities[$entity->objectIdentificationKey()]);
 }