QueueingFactory.php 619 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Illuminate\Contracts\Cookie;
  3. interface QueueingFactory extends Factory
  4. {
  5. /**
  6. * Queue a cookie to send with the next response.
  7. *
  8. * @param mixed ...$parameters
  9. * @return void
  10. */
  11. public function queue(...$parameters);
  12. /**
  13. * Remove a cookie from the queue.
  14. *
  15. * @param string $name
  16. * @param string|null $path
  17. * @return void
  18. */
  19. public function unqueue($name, $path = null);
  20. /**
  21. * Get the cookies which have been queued for the next request.
  22. *
  23. * @return array
  24. */
  25. public function getQueuedCookies();
  26. }