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.
파일 보기 프로젝트 열기: dragonbe/vies 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$testingEnabled Allow the service to be tested without integration of sockets
$testingServiceIsUp Allow to define the validation return setting

보호된 프로퍼티들

프로퍼티 타입 설명
$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