/** * @see \Components\Object::hashCode() hashCode */ public function hashCode() { return \math\hasho($this); }
/** * @param mixed $object_ * * @return string */ public static function toString($object_) { return sprintf('%s@%s{%s}', get_class($object_), \math\hasho($object_), Arrays::toString(get_object_vars($object_))); }
/** * Resolves instance for given binding. * * @param \Components\Binding_Type_Abstract $binding_ * * @return mixed */ private function createInstanceImpl(Binding_Type_Abstract $binding_) { $instance = $binding_->getInstance(); if ($binding_->isPrimitive()) { return $instance; } $instanceId = \math\hasho($instance); if (isset($this->m_injectedInstances[$instanceId])) { return $this->m_injectedInstances[$instanceId]; } $this->m_injectedInstances[$instanceId] = $instance; $this->injectMembersImpl($instance); return $instance; }
/** * @see \Components\Object::hashCode() hashCode */ public function hashCode() { // TODO Implement return \math\hasho($this); }