PHP Класс DragonBe\Vies\HeartBeat

This class provides a simple but essential heartbeat cheack on the VIES service as it's known to have availability issues.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$testingEnabled Allow the service to be tested without integration of sockets
$testingServiceIsUp Allow to define the validation return setting

Защищенные свойства (Protected)

Свойство Тип Описание
$host The host you want to verify
$port The port you want to verify

Открытые методы

Метод Описание
__construct ( string | null $host = null, integer $port = 80 )
getHost ( ) : string
getPort ( ) : integer
isAlive ( ) Checks if the VIES service is online and available
setHost ( string $host ) : HeartBeat
setPort ( integer $port ) : HeartBeat

Приватные методы

Метод Описание
connect ( $host, $port ) : boolean | resource Make a connection outwards to test an online service

Описание методов

__construct() публичный Метод

public __construct ( string | null $host = null, integer $port = 80 )
$host string | null
$port integer

getHost() публичный Метод

public getHost ( ) : string
Результат string

getPort() публичный Метод

public getPort ( ) : integer
Результат integer

isAlive() публичный Метод

Checks if the VIES service is online and available
public isAlive ( )

setHost() публичный Метод

public setHost ( string $host ) : HeartBeat
$host string
Результат HeartBeat

setPort() публичный Метод

public setPort ( integer $port ) : HeartBeat
$port integer
Результат HeartBeat

Описание свойств

$host защищенное свойство

The host you want to verify
protected $host

$port защищенное свойство

The port you want to verify
protected $port

$testingEnabled публичное статическое свойство

Allow the service to be tested without integration of sockets
public static $testingEnabled

$testingServiceIsUp публичное статическое свойство

Allow to define the validation return setting
public static $testingServiceIsUp