1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @see https://github.com/laminas/laminas-cache for the canonical source repository
* @copyright https://github.com/laminas/laminas-cache/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-cache/blob/master/LICENSE.md New BSD License
*/
namespace Laminas\Cache\Storage\Adapter;
use Laminas\Session\Container as SessionContainer;
/**
* These are options specific to the APC adapter
*/
class SessionOptions extends AdapterOptions
{
/**
* The session container
*
* @var null|SessionContainer
*/
protected $sessionContainer;
/**
* Set the session container
*
* @return SessionOptions Provides a fluent interface
*/
public function setSessionContainer(?SessionContainer $sessionContainer = null)
{
if ($this->sessionContainer !== $sessionContainer) {
$this->triggerOptionEvent('session_container', $sessionContainer);
$this->sessionContainer = $sessionContainer;
}
return $this;
}
/**
* Get the session container
*
* @return null|SessionContainer
*/
public function getSessionContainer()
{
return $this->sessionContainer;
}
}