code/libraries/joomlatools/library/object/registry/registry.php
public function set($identifier, $data = null)
    {
        if($data == null) {
            $data = is_string($identifier) ? new KObjectIdentifier($identifier) : $identifier;
        }

        $this->offsetSet((string) $identifier, $data);
        return $data;
    }
public function set($identifier, $data = null)
    {
        if($data == null) {
            $data = is_string($identifier) ? new KObjectIdentifier($identifier) : $identifier;
        }

        $this->offsetSet((string) $identifier, $data);
        return $data;
    }
public function set ( $ identifier , $ data = null ) { if ( $ data == null ) { $ data = is_string ( $ identifier ) ? new KObjectIdentifier ( $ identifier ) : $ identifier ; } $ this -> offsetSet ( ( string ) $ identifier , $ data ) ; return $ data ; }
Set an object in the registry

@param  KObjectIdentifier|string $identifier An ObjectIdentifier, identifier string
@param  mixed $data
@return KObjectIdentifier The object identifier that was set in the registry.
Set an object in the registry