| 1 | <?php  | 
            ||
| 9 | abstract class BaseStore implements SessionHandlerInterface  | 
            ||
| 10 | { | 
            ||
| 11 | use Configurable;  | 
            ||
| 12 | |||
| 13 | /**  | 
            ||
| 14 | * Session secret key  | 
            ||
| 15 | *  | 
            ||
| 16 | * @var string  | 
            ||
| 17 | */  | 
            ||
| 18 | protected $key = null;  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * Assign a new session secret key  | 
            ||
| 22 | *  | 
            ||
| 23 | * @param string $key  | 
            ||
| 24 | */  | 
            ||
| 25 | public function setKey($key)  | 
            ||
| 29 | |||
| 30 | /**  | 
            ||
| 31 | * Get the session secret key  | 
            ||
| 32 | *  | 
            ||
| 33 | * @return string  | 
            ||
| 34 | */  | 
            ||
| 35 | protected function getKey()  | 
            ||
| 39 | |||
| 40 | /**  | 
            ||
| 41 | * Get lifetime in number of seconds  | 
            ||
| 42 | *  | 
            ||
| 43 | * @return int  | 
            ||
| 44 | */  | 
            ||
| 45 | protected function getLifetime()  | 
            ||
| 53 | |||
| 54 | /**  | 
            ||
| 55 | * Gets the current unix timestamp  | 
            ||
| 56 | *  | 
            ||
| 57 | * @return int  | 
            ||
| 58 | */  | 
            ||
| 59 | protected function getNow()  | 
            ||
| 63 | }  | 
            ||
| 64 |