SessionBagInterface.php 814 B

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