blob: d6c74b8f95452ca0107471675d7b96a01dce3303 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Cookie;
4
5interface QueueingFactory extends Factory
6{
7 /**
8 * Queue a cookie to send with the next response.
9 *
10 * @param array $parameters
11 * @return void
12 */
13 public function queue(...$parameters);
14
15 /**
16 * Remove a cookie from the queue.
17 *
18 * @param string $name
19 * @param string|null $path
20 * @return void
21 */
22 public function unqueue($name, $path = null);
23
24 /**
25 * Get the cookies which have been queued for the next request.
26 *
27 * @return array
28 */
29 public function getQueuedCookies();
30}