public function get($identifier = null)
    {
        $result = null;

        if (null === $identifier) {
            $result = self::$lookup;
        } elseif ('doozr.registry' === $identifier) {
            $result = $this;
        } else {
            if (true === isset(self::$lookup[$identifier])) {
                $result = self::$references[self::$lookup[$identifier]];
            }
        }

        return $result;
    }
public function get($identifier = null)
    {
        $result = null;

        if (null === $identifier) {
            $result = self::$lookup;
        } elseif ('doozr.registry' === $identifier) {
            $result = $this;
        } else {
            if (true === isset(self::$lookup[$identifier])) {
                $result = self::$references[self::$lookup[$identifier]];
            }
        }

        return $result;
    }
public function get ( $ identifier = null ) { $ result = null ; if ( null === $ identifier ) { $ result = self :: $ lookup ; } elseif ( 'doozr.registry' === $ identifier ) { $ result = $ this ; } else { if ( true === isset ( self :: $ lookup [ $ identifier ] ) ) { $ result = self :: $ references [ self :: $ lookup [ $ identifier ] ] ; } } return $ result ; }
This method returns a previously stored element from the registry.

@param string $identifier The identifier of the stored object, class ...

@author Benjamin Carl <opensource@clickalicious.de>

@return mixed The stored variable if exist
This method returns a previously stored element from the registry .