composer package updates
[openemr.git] / vendor / zendframework / zend-cache / src / Storage / Adapter / SessionOptions.php
blobc7fc69bde1d085dd152bc7de906a720750d83de4
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Cache\Storage\Adapter;
12 use Zend\Session\Container as SessionContainer;
14 /**
15 * These are options specific to the APC adapter
17 class SessionOptions extends AdapterOptions
19 /**
20 * The session container
22 * @var null|SessionContainer
24 protected $sessionContainer = null;
26 /**
27 * Set the session container
29 * @param null|SessionContainer $sessionContainer
30 * @return SessionOptions Provides a fluent interface
32 public function setSessionContainer(SessionContainer $sessionContainer = null)
34 if ($this->sessionContainer != $sessionContainer) {
35 $this->triggerOptionEvent('session_container', $sessionContainer);
36 $this->sessionContainer = $sessionContainer;
39 return $this;
42 /**
43 * Get the session container
45 * @return null|SessionContainer
47 public function getSessionContainer()
49 return $this->sessionContainer;