public function add(&$variable, $identifier = null)
    {
        if ($identifier === null) {
            $identifier = $this->calculateUuid();
        }

        return $this->set($variable, $identifier);
    }
public function add(&$variable, $identifier = null)
    {
        if ($identifier === null) {
            $identifier = $this->calculateUuid();
        }

        return $this->set($variable, $identifier);
    }
public function add ( & $ variable , $ identifier = null ) { if ( $ identifier === null ) { $ identifier = $ this -> calculateUuid ( ) ; } return $ this -> set ( $ variable , $ identifier ) ; }
Adds an multi element like a multi instance service to registry by generating UUID for instances.

@param Doozr_Base_Service_Interface $variable
@param string                       $identifier

@author Benjamin Carl <opensource@clickalicious.de>

@return string
Adds an multi element like a multi instance service to registry by generating UUID for instances .