PHP Class Thruway\Transport\AbstractTransport

Inheritance: implements Thruway\Transport\TransportInterface
Mostra file Open project: voryx/thruway

Protected Properties

Property Type Description
$loop React\EventLoop\LoopInterface
$serializer Thruway\Serializer\SerializerInterface
$trusted boolean

Public Methods

Method Description
close ( ) Close transport
getLoop ( ) : React\EventLoop\LoopInterface Get loop
getSerializer ( ) : Thruway\Serializer\SerializerInterface Get serializer
isTrusted ( ) : boolean Checks to see if a transport is trusted
ping ( ) Ping
setSerializer ( Thruway\Serializer\SerializerInterface $serializer ) Set serializer
setTrusted ( boolean $trusted )

Method Details

close() public method

Close transport
public close ( )

getLoop() public method

Get loop
public getLoop ( ) : React\EventLoop\LoopInterface
return React\EventLoop\LoopInterface

getSerializer() public method

Get serializer
public getSerializer ( ) : Thruway\Serializer\SerializerInterface
return Thruway\Serializer\SerializerInterface

isTrusted() public method

Checks to see if a transport is trusted
public isTrusted ( ) : boolean
return boolean

ping() public method

Ping
public ping ( )

setSerializer() public method

Set serializer
public setSerializer ( Thruway\Serializer\SerializerInterface $serializer )
$serializer Thruway\Serializer\SerializerInterface

setTrusted() public method

public setTrusted ( boolean $trusted )
$trusted boolean \

Property Details

$loop protected_oe property

protected LoopInterface,React\EventLoop $loop
return React\EventLoop\LoopInterface

$serializer protected_oe property

protected SerializerInterface,Thruway\Serializer $serializer
return Thruway\Serializer\SerializerInterface

$trusted protected_oe property

protected bool $trusted
return boolean