/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Session
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Session/SessionInterface.php (2032B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
namespace PrestaShop\PrestaShop\Core\Session;
/**
* SessionInterface is used to store/access to the session token used by customers and employees
*/
interface SessionInterface
{
/**
* Returns session id
*
* @return int
*/
public function getId();
/**
* Set session user id
*
* @param int $id
*
* @return void
*/
public function setUserId($id);
/**
* Returns session user id
*
* @return int
*/
public function getUserId();
/**
* Set session token
*
* @param string $string
*
* @return void
*/
public function setToken($string);
/**
* Returns session token
*
* @return string
*/
public function getToken();
/**
* Adds current object to the database.
*/
public function add();
/**
* Deletes current object from database.
*/
public function delete();
}