QueueingFactory.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Contracts\Cookie; |
| 4 | |
| 5 | /** @internal */ |
| 6 | interface QueueingFactory extends Factory |
| 7 | { |
| 8 | /** |
| 9 | * Queue a cookie to send with the next response. |
| 10 | * |
| 11 | * @param mixed ...$parameters |
| 12 | * @return void |
| 13 | */ |
| 14 | public function queue(...$parameters); |
| 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 | * Get the cookies which have been queued for the next request. |
| 25 | * |
| 26 | * @return array |
| 27 | */ |
| 28 | public function getQueuedCookies(); |
| 29 | } |
| 30 |