Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | namespace Illuminate\Contracts\Cookie; |
| 4 | |
| 5 | interface 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 | } |