namespace = $namespace; } if ($member !== null) { $this->member = $member; } $this->session = new SessionContainer($this->namespace, $manager); } /** * Returns the session namespace * * @return string */ public function getNamespace() { return $this->namespace; } /** * Returns the name of the session object member * * @return string */ public function getMember() { return $this->member; } /** * Defined by Zend\Authentication\Storage\StorageInterface * * @return bool */ public function isEmpty() { return !isset($this->session->{$this->member}); } /** * Defined by Zend\Authentication\Storage\StorageInterface * * @return mixed */ public function read() { return $this->session->{$this->member}; } /** * Defined by Zend\Authentication\Storage\StorageInterface * * @param mixed $contents * @return void */ public function write($contents) { $this->session->{$this->member} = $contents; } /** * Defined by Zend\Authentication\Storage\StorageInterface * * @return void */ public function clear() { unset($this->session->{$this->member}); } }