
#ifdef HAVE_CONFIG_H
#include "../../../ext_config.h"
#endif

#include <php.h>
#include "../../../php_ext.h"
#include "../../../ext.h"

#include <Zend/zend_exceptions.h>

#include "kernel/main.h"


/**
 * This file is part of the Phalcon Framework.
 *
 * (c) Phalcon Team <team@phalcon.io>
 *
 * For the full copyright and license information, please view the LICENSE.txt
 * file that was distributed with this source code.
 */
/**
 * Interface for Phalcon\Http\Response\Cookies
 *
 * @phpstan-import-type http_cookie_options from HttpTypes
 */
ZEPHIR_INIT_CLASS(Phalcon_Http_Response_CookiesInterface)
{
	ZEPHIR_REGISTER_INTERFACE(Phalcon\\Http\\Response, CookiesInterface, phalcon, http_response_cookiesinterface, phalcon_http_response_cookiesinterface_method_entry);

	return SUCCESS;
}

/**
 * Deletes a cookie by its name
 * This method does not removes cookies from the _COOKIE superglobal
 */
ZEPHIR_DOC_METHOD(Phalcon_Http_Response_CookiesInterface, delete);
/**
 * Gets a cookie from the bag
 */
ZEPHIR_DOC_METHOD(Phalcon_Http_Response_CookiesInterface, get);
/**
 * Check if a cookie is defined in the bag or exists in the _COOKIE superglobal
 */
ZEPHIR_DOC_METHOD(Phalcon_Http_Response_CookiesInterface, has);
/**
 * Returns if the bag is automatically encrypting/decrypting cookies
 */
ZEPHIR_DOC_METHOD(Phalcon_Http_Response_CookiesInterface, isUsingEncryption);
/**
 * Reset set cookies
 */
ZEPHIR_DOC_METHOD(Phalcon_Http_Response_CookiesInterface, reset);
/**
 * Sends the cookies to the client
 */
ZEPHIR_DOC_METHOD(Phalcon_Http_Response_CookiesInterface, send);
/**
 * Sets a cookie to be sent at the end of the request
 *
 * @phpstan-param http_cookie_options $options
 */
ZEPHIR_DOC_METHOD(Phalcon_Http_Response_CookiesInterface, set);
/**
 * Set if cookies in the bag must be automatically encrypted/decrypted
 */
ZEPHIR_DOC_METHOD(Phalcon_Http_Response_CookiesInterface, useEncryption);
