getArrayCopy(); } /** * Load session object from an existing array * * Ensures $_SESSION is set to an instance of the object when complete. * * @param array $array * @return SessionStorage */ public function fromArray(array $array) { parent::fromArray($array); if ($_SESSION !== $this) { $_SESSION = $this; } return $this; } /** * Mark object as isImmutable * * @return SessionStorage */ public function markImmutable() { $this['_IMMUTABLE'] = true; return $this; } /** * Determine if this object is isImmutable * * @return bool */ public function isImmutable() { return isset($this['_IMMUTABLE']) && $this['_IMMUTABLE']; } }