This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/HttpFoundation/Session/SessionBagInterface.php

49 lines
884 B
PHP
Raw Normal View History

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HttpFoundation\Session;
/**
* Session Bag store.
*
* @author Drak <drak@zikula.org>
*/
interface SessionBagInterface
{
/**
2014-12-21 17:00:50 +00:00
* Gets this bag's name.
*
* @return string
*/
2012-07-09 13:50:58 +01:00
public function getName();
/**
2014-12-21 17:00:50 +00:00
* Initializes the Bag.
*
* @param array $array
*/
2012-07-09 13:50:58 +01:00
public function initialize(array &$array);
/**
* Gets the storage key for this bag.
*
* @return string
*/
2012-07-09 13:50:58 +01:00
public function getStorageKey();
/**
* Clears out data from bag.
*
* @return mixed Whatever data was contained.
*/
2012-07-09 13:50:58 +01:00
public function clear();
}