SessionEntityInterface
extends
EntityInterface
in
Interface for representing a session row.
Tags
Table of Contents
- getData() : string|null
- Get session data.
- getId() : int
- Id getter
- getLastUsed() : int
- Get time when the session was last used.
- setCreated() : SessionEntityInterface
- Created setter.
- setData() : SessionEntityInterface
- Session data setter.
- setLastUsed() : SessionEntityInterface
- Set time the session is last used.
- setSessionId() : SessionEntityInterface
- Session Id setter
Methods
getData()
Get session data.
public
getData() : string|null
Return values
string|null —getId()
Id getter
public
getId() : int
Return values
int —getLastUsed()
Get time when the session was last used.
public
getLastUsed() : int
Return values
int —setCreated()
Created setter.
public
setCreated(DateTime $dateTime) : SessionEntityInterface
Parameters
- $dateTime : DateTime
-
Created date
Return values
SessionEntityInterface —setData()
Session data setter.
public
setData(string|null $data) : SessionEntityInterface
Parameters
- $data : string|null
-
Session data.
Return values
SessionEntityInterface —setLastUsed()
Set time the session is last used.
public
setLastUsed(int $lastUsed) : SessionEntityInterface
Parameters
- $lastUsed : int
-
Time last used
Return values
SessionEntityInterface —setSessionId()
Session Id setter
public
setSessionId(string|null $sid) : SessionEntityInterface
Parameters
- $sid : string|null
-
Session Id.