PHP Interface Thruway\Transport\TransportInterface

显示文件 Open project: voryx/thruway Interface Usage Examples

Public Methods

Method Description
close ( ) Close transport
getSerializer ( ) : Thruway\Serializer\SerializerInterface Get serializer
getTransportDetails ( ) : mixed
isTrusted ( ) : boolean Checks to see if a transport is trusted
ping ( ) Ping
sendMessage ( Thruway\Message\Message $msg )
setSerializer ( Thruway\Serializer\SerializerInterface $serializer ) Set serializer
setTrusted ( boolean $trusted )

Method Details

close() public method

Close transport
public close ( )

getSerializer() public method

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

getTransportDetails() public method

public getTransportDetails ( ) : mixed
return mixed

isTrusted() public method

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

ping() public method

Ping
public ping ( )

sendMessage() public method

public sendMessage ( Thruway\Message\Message $msg )
$msg Thruway\Message\Message

setSerializer() public method

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

setTrusted() public method

public setTrusted ( boolean $trusted )
$trusted boolean