static public function getOrDefault($object, $key, $default)
    {
        $oid = spl_object_hash($object);

        if (isset(static::$archive[$oid]) && (isset(static::$archive[$oid][$key]) || array_key_exists($key, static::$archive[$oid]))) {
            return static::$archive[$oid][$key];
        }

        return $default;
    }
static public function getOrDefault($object, $key, $default)
    {
        $oid = spl_object_hash($object);

        if (isset(static::$archive[$oid]) && (isset(static::$archive[$oid][$key]) || array_key_exists($key, static::$archive[$oid]))) {
            return static::$archive[$oid][$key];
        }

        return $default;
    }
static public function getOrDefault ( $ object , $ key , $ default ) { $ oid = spl_object_hash ( $ object ) ; if ( isset ( static :: $ archive [ $ oid ] ) && ( isset ( static :: $ archive [ $ oid ] [ $ key ] ) || array_key_exists ( $ key , static :: $ archive [ $ oid ] ) ) ) { return static :: $ archive [ $ oid ] [ $ key ] ; } return $ default ; }
Returns an object key or returns a default value otherwise.

@param object $object  The object.
@param string $key     The key.
@param mixed  $default The value to return if the object key does not exist.

@return mixed The object key value or the default value.
Returns an object key or returns a default value otherwise .