Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/updates/update_m1740164652/main/lib/web/http/
Upload File :
Current File : /var/www/homesaver/www/bitrix/updates/update_m1740164652/main/lib/web/http/debuginterfacetrait.php

<?php

/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage main
 * @copyright 2001-2024 Bitrix
 */

namespace Bitrix\Main\Web\Http;

use Bitrix\Main\Web\HttpDebug;

trait DebugInterfaceTrait
{
	protected int $debugLevel = HttpDebug::CONNECT | HttpDebug::REQUEST_HEADERS | HttpDebug::RESPONSE_HEADERS;

	/**
	 * Sets debug level using HttpDebug::* constants.
	 * @param int $debugLevel
	 */
	public function setDebugLevel(int $debugLevel)
	{
		$this->debugLevel = $debugLevel;
	}

	/**
	 * Returns the current level.
	 * @return int HttpDebug::* constants
	 */
	public function getDebugLevel(): int
	{
		return $this->debugLevel;
	}
}