| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <[email protected]> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | namespace Symfony\Component\HttpFoundation\Session; |
| 13 | |
| 14 | /** |
| 15 | * Session Bag store. |
| 16 | * |
| 17 | * @author Drak <[email protected]> |
| 18 | */ |
| 19 | interface SessionBagInterface |
| 20 | { |
| 21 | /** |
| 22 | * Gets this bag's name. |
| 23 | */ |
| 24 | public function getName(): string; |
| 25 | |
| 26 | /** |
| 27 | * Initializes the Bag. |
| 28 | */ |
| 29 | public function initialize(array &$array): void; |
| 30 | |
| 31 | /** |
| 32 | * Gets the storage key for this bag. |
| 33 | */ |
| 34 | public function getStorageKey(): string; |
| 35 | |
| 36 | /** |
| 37 | * Clears out data from bag. |
| 38 | * |
| 39 | * @return mixed Whatever data was contained |
| 40 | */ |
| 41 | public function clear(): mixed; |
| 42 | } |