2021-08-27 06:46:27 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Illuminate\Contracts\Cookie;
|
|
|
|
|
|
|
|
interface QueueingFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Queue a cookie to send with the next response.
|
|
|
|
*
|
2023-02-24 06:26:40 -05:00
|
|
|
* @param mixed ...$parameters
|
2021-08-27 06:46:27 -04:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function queue(...$parameters);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove a cookie from the queue.
|
|
|
|
*
|
|
|
|
* @param string $name
|
|
|
|
* @param string|null $path
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function unqueue($name, $path = null);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the cookies which have been queued for the next request.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getQueuedCookies();
|
|
|
|
}
|