static public function &getByRef($object, $key, $default = null)
    {
        $oid = spl_object_hash($object);

        if (!isset(static::$archive[$oid][$key])) {
            static::$archive[$oid][$key] = $default;
        }

        return static::$archive[$oid][$key];
    }
static public function &getByRef($object, $key, $default = null)
    {
        $oid = spl_object_hash($object);

        if (!isset(static::$archive[$oid][$key])) {
            static::$archive[$oid][$key] = $default;
        }

        return static::$archive[$oid][$key];
    }
static public function & getByRef ( $ object , $ key , $ default = null ) { $ oid = spl_object_hash ( $ object ) ; if ( ! isset ( static :: $ archive [ $ oid ] [ $ key ] ) ) { static :: $ archive [ $ oid ] [ $ key ] = $ default ; } return static :: $ archive [ $ oid ] [ $ key ] ; }
Returns an object key by reference. It creates the key if the key does not exist.

@param object $object  The object
@param string $key     The key.
@param mixed  $default The default value, used to create the key if it does not exist (null by default).

@return mixed The object key value.
Returns an object key by reference . It creates the key if the key does not exist .