Adding const used throughout the project

This commit is contained in:
Marc Hagen 2022-11-23 11:47:51 +01:00
parent dee319c4c9
commit dc106e2975
No known key found for this signature in database

View file

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
/** /**
* Hybula Looking Glass * Hybula Looking Glass
* *
@ -10,15 +10,21 @@
* @since File available since release 0.1 * @since File available since release 0.1
* @link https://github.com/hybula/lookingglass * @link https://github.com/hybula/lookingglass
*/ */
declare(strict_types=1);
namespace Hybula; namespace Hybula;
class LookingGlass class LookingGlass
{ {
public static $targetHost; public const IPV4 = 'ipv4';
public static $targetType; public const IPV6 = 'ipv6';
public const SESSION_TARGET_HOST = 'target_host';
public const SESSION_TARGET_METHOD = 'target_method';
public const SESSION_TOS_CHECKED = 'tos_checked';
public const SESSION_CALL_BACKEND = 'call_backend';
public const SESSION_ERROR_MESSAGE = 'error_message';
public const SESSION_CSRF = 'CSRF';
private const MTR_COUNT = 10;
/** /**
* Validates the config.php file for required constants. * Validates the config.php file for required constants.