/** * Get the aliases for an identifier * * @param mixed $identifier An ObjectIdentifier, identifier string or object implementing ObjectInterface * @return array An array of aliases */ public function getAliases($identifier) { return array_search((string) $identifier, $this->_registry->getAliases()); }
/** * Check if the identifier is an alias * * @param mixed $identifier An ObjectIdentifier, identifier string or object implementing ObjectInterface * @return boolean Returns TRUE if the identifiers is an alias FALSE otherwise */ public function isAlias($identifier) { return array_key_exists($this->__registry->getAliases(), (string) $identifier); }